aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean de Klerk <deklerk@google.com>2022-06-01 08:18:39 -0600
committerJean de Klerk <deklerk@google.com>2022-06-01 15:02:17 +0000
commit0de741cfad7ff3874b219dfbc1b9195b58c7c490 (patch)
treebebc4c5b68efed5bce8e63ece31c6c237baf7efa
parent0976fa681c295de5355f7a4d968b56cb9da8a76b (diff)
downloadgolang-x-sync-0de741cfad7ff3874b219dfbc1b9195b58c7c490.tar.gz
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>
-rw-r--r--errgroup/errgroup.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/errgroup/errgroup.go b/errgroup/errgroup.go
index 1eab2fd..4c0850a 100644
--- a/errgroup/errgroup.go
+++ b/errgroup/errgroup.go
@@ -17,7 +17,8 @@ type token struct{}
// A Group is a collection of goroutines working on subtasks that are part of
// the same overall task.
//
-// A zero Group is valid and does not cancel on error.
+// A zero Group is valid, has no limit on the number of active goroutines,
+// and does not cancel on error.
type Group struct {
cancel func()