Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecutionOption ¶
type ExecutionOption func(*executionContext)
func OnFailure ¶
func OnFailure(task Task) ExecutionOption
func OnSuccess ¶
func OnSuccess(task Task) ExecutionOption
func Parallel ¶
func Parallel(tasks ...Task) ExecutionOption
func Sequential ¶
func Sequential(tasks ...Task) ExecutionOption
Sequential runs all tasks sequentially, and returns the first error encountered.Sequential Once a task returns an error, the following tasks will not run.
func SequentialAll ¶
func SequentialAll(tasks ...Task) ExecutionOption
func WithContext ¶
func WithContext(ctx context.Context) ExecutionOption
type MultiError ¶
type MultiError []error
func (MultiError) Error ¶
func (e MultiError) Error() string
Click to show internal directories.
Click to hide internal directories.