We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65a4f4b commit 4da3a20Copy full SHA for 4da3a20
1 file changed
task/group.go
@@ -33,8 +33,8 @@ type Group struct {
33
}
34
35
// NewGroup creates new task group instance.
36
-func NewGroup(ctx context.Context) *Group {
37
- ctx, cancel := context.WithCancel(ctx)
+func NewGroup() *Group {
+ ctx, cancel := context.WithCancel(context.Background())
38
39
return &Group{
40
ctx: ctx,
0 commit comments