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