Documentation ¶ Index ¶ func Do(ctx context.Context, tasks ...Task) error type Task Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Do ¶ func Do(ctx context.Context, tasks ...Task) error Do runs all tasks, and returns when 1) all tasks have completed without errors 2) the context has been canceled (returns werrors.ErrCancelled), 3) as soon as one of the tasks has returned a non-nil error Types ¶ type Task ¶ type Task func() error Task describes some work to be done Source Files ¶ View all Source files taskgroup.go Click to show internal directories. Click to hide internal directories.