8000
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 b637f27 commit 396f3a0Copy full SHA for 396f3a0
errgroup/errgroup.go
@@ -18,7 +18,7 @@ import (
18
type token struct{}
19
20
// A Group is a collection of goroutines working on subtasks that are part of
21
-// the same overall task.
+// the same overall task. A Group should not be reused for different tasks.
22
//
23
// A zero Group is valid, has no limit on the number of active goroutines,
24
// and does not cancel on error.
@@ -61,6 +61,7 @@ func (g *Group) Wait() error {
61
}
62
63
// Go calls the given function in a new goroutine.
64
+// The first call to Go must happen before a Wait.
65
// It blocks until the new goroutine can be added without the number of
66
// active goroutines in the group exceeding the configured limit.
67
0 commit comments