summaryrefslogtreecommitdiff
path: root/vendor/golang.org/x/sync/errgroup/errgroup.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/golang.org/x/sync/errgroup/errgroup.go')
-rw-r--r--vendor/golang.org/x/sync/errgroup/errgroup.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/vendor/golang.org/x/sync/errgroup/errgroup.go b/vendor/golang.org/x/sync/errgroup/errgroup.go
index 948a3ee63..b8322598a 100644
--- a/vendor/golang.org/x/sync/errgroup/errgroup.go
+++ b/vendor/golang.org/x/sync/errgroup/errgroup.go
@@ -118,6 +118,7 @@ func (g *Group) TryGo(f func() error) bool {
// SetLimit limits the number of active goroutines in this group to at most n.
// A negative value indicates no limit.
+// A limit of zero will prevent any new goroutines from being added.
//
// Any subsequent call to the Go method will block until it can add an active
// goroutine without exceeding the configured limit.