Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor interface {
//Add adds a task to executor queue
Add(task Task)
//Wait waits for all executors to finish or one of them to error based on option selected
Wait() error
}
Executor is the interface for a basic executor pipeline
func NewExecutor ¶
NewExecutor builds and returns an executor
type Option ¶
type Option func(*config)
Option represents different options available for Executor
func WithConcurrency ¶
WithConcurrency sets the number of concurrent works
func WithFailOnError ¶
WithFailOnError fails all task if even a single task returns a error
Click to show internal directories.
Click to hide internal directories.