diff --git a/errgroup/errgroup.go b/errgroup/errgroup.go index 948a3ee..b832259 100644 --- a/errgroup/errgroup.go +++ b/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.