Versions in this module Expand all Collapse all v1 v1.0.0 Sep 26, 2019 Changes in this version + var ErrNilFailure = errors.New("nil failure") + func Do(fn func(FailFunc)) error + func DoWithContext(ctx context.Context, fn HandlerFunc) error + func Run(fn func(FailFunc)) (Completed, Failed) + func RunSimple(fn func() error) (Completed, Failed) + func RunSimpleWithContext(ctx context.Context, fn SimpleHandlerFunc) (Completed, Failed) + func RunWithContext(ctx context.Context, fn HandlerFunc) (Completed, Failed) + type Completed <-chan struct + type FailFunc func(error) + type Failed <-chan error + type HandlerFunc func(context.Context, FailFunc) + type SimpleHandlerFunc func(context.Context) error