Versions in this module Expand all Collapse all v0 v0.1.2 Nov 6, 2023 Changes in this version + func Run(ctx context.Context, start func(ctx context.Context, spawn SpawnFn) error) error + type ErrPanic struct + Stack []byte + Value interface{} + func (err ErrPanic) Error() string + func (err ErrPanic) Unwrap() error + type Group struct + func NewGroup(ctx context.Context) *Group + func NewSubgroup(spawn SpawnFn, name string, onExit OnExit) *Group + func (g *Group) Complete(ctx context.Context) error + func (g *Group) Context() context.Context + func (g *Group) Done() <-chan struct{} + func (g *Group) Exit(err error) + func (g *Group) Running() int + func (g *Group) Spawn(name string, onExit OnExit, task Task) + func (g *Group) Wait() error + type OnExit int + const Continue + const Exit + const Fail + func (onExit OnExit) String() string + type SpawnFn func(name string, onExit OnExit, task Task) + type Task func(ctx context.Context) error