package exegroup_test import ( "context" "git.blauwelle.com/go/crate/exegroup" "log" ) func Example_defaultGroup() { g := exegroup.Default() g.New().WithName("do nothing").WithGo(func(ctx context.Context) error { <-ctx.Done() return ctx.Err() }) log.Println("exit:", g.Run(context.Background())) }