Skip to content

Commit 0de741c

Browse files
committed
x/sync/errgroup: make note of the default errgroup goroutine limit (unlimited)
Change-Id: I1926e6faf821a7adb6c1365d18432abb0f856367 Reviewed-on: https://go-review.googlesource.com/c/sync/+/409774 Run-TryBot: Bryan Mills <bcmills@google.com> Reviewed-by: Bryan Mills <bcmills@google.com> Reviewed-by: Changkun Ou <mail@changkun.de> Run-TryBot: Changkun Ou <mail@changkun.de> TryBot-Result: Gopher Robot <gobot@golang.org>
1 parent 0976fa6 commit 0de741c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

errgroup/errgroup.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ type token struct{}
1717
// A Group is a collection of goroutines working on subtasks that are part of
1818
// the same overall task.
1919
//
20-
// A zero Group is valid and does not cancel on error.
20+
// A zero Group is valid, has no limit on the number of active goroutines,
21+
// and does not cancel on error.
2122
type Group struct {
2223
cancel func()
2324

0 commit comments

Comments
 (0)