Skip to content

Commit 59c1ca1

Browse files
dolmengopherbot
authored andcommitted
errgroup: add reference to sync.WaitGroup
Add doc link to sync.WaitGroup in the package documentation. Rationale: The reference to sync.WaitGroup might be obvious to the authors of this package, but it wasn't to me, so despites I had seen this package multiple times I had never made the link to sync.WaitGroup. So when playing with WaitGroup I was missing remembering about errgroup. In hope this will help others as well as my future self. Change-Id: I2c56976958ad9ab94c1596c96fa86c00dd73d2fb Reviewed-on: https://go-review.googlesource.com/c/sync/+/538335 Reviewed-by: Bryan Mills <[email protected]> Reviewed-by: Carlos Amedee <[email protected]> Auto-Submit: Bryan Mills <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent 10739b0 commit 59c1ca1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

errgroup/errgroup.go

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
// Package errgroup provides synchronization, error propagation, and Context
66
// cancelation for groups of goroutines working on subtasks of a common task.
7+
//
8+
// [errgroup.Group] is related to [sync.WaitGroup] but adds handling of tasks
9+
// returning errors.
710
package errgroup
811

912
import (

0 commit comments

Comments
 (0)