Documentation
¶
Index ¶
- Constants
- Variables
- func Parallel(parallel int) func(*Runner)
- type Runner
- type RunnerOpt
- type Work
- type WorkQueue
- func Filter[T any](buffer int, in <-chan T, predicate func(T) (bool, error)) (<-chan T, WorkQueue)
- func ForEach[FROM any](buffer int, in <-chan FROM, fn func(FROM) error) WorkQueue
- func Map[FROM, TO any](buffer int, in <-chan FROM, fn func(FROM) (TO, error)) (<-chan TO, WorkQueue)
- func Reduce[T any](buffer int, in <-chan T, fn func(T) error) WorkQueue
Constants ¶
View Source
const WorkBuffer = 100
Variables ¶
View Source
var ErrStream = errors.New("executing workflow")
Functions ¶
Types ¶
type WorkQueue ¶ added in v0.2.0
type WorkQueue <-chan Work
Click to show internal directories.
Click to hide internal directories.