Documentation ¶
Index ¶
Constants ¶
View Source
const ErrUnexpectedReturn sentinelError = "unexpected return"
ErrUnexpectedReturn is triggered if a runner is not expected to return but returned.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
Run starts all runners and blocks until all runners returned. Runners are expected to stop only due to context cancellation reasons. This mean that context.Canceled on runners is not considered an error.
Run returns an error if:
- a runner returned unexpectedly (with or without error) ; in that case ErrUnexpectedReturn is returned
- after being stopped, a runner returned an error that is not context.Canceled
Types ¶
Click to show internal directories.
Click to hide internal directories.