From 0de741cfad7ff3874b219dfbc1b9195b58c7c490 Mon Sep 17 00:00:00 2001 From: Jean de Klerk Date: Wed, 1 Jun 2022 08:18:39 -0600 Subject: [PATCH] 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 Reviewed-by: Bryan Mills Reviewed-by: Changkun Ou Run-TryBot: Changkun Ou TryBot-Result: Gopher Robot --- errgroup/errgroup.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()