dispatcher

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidValue = errors.New("invalid value")

Functions

This section is empty.

Types

type Dispatcher

type Dispatcher interface {
	Do(ctx context.Context, maxIter int, callback func()) error
}

func New

func New(numWorker int) Dispatcher

New returns a Dispatcher initialized with numWorker.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL