golang.org/x/sync/errgroup package
Official package docs for bounded goroutine groups that propagate cancellation and the first error.
Official package docs for bounded goroutine groups that propagate cancellation and the first error.
- Author: Go Authors
- Authority: primary
- Kind: package-doc
- URL: https://pkg.go.dev/golang.org/x/sync/errgroup
What it covers
- errgroup lifecycle
- error propagation
- coordination with context
Why authoritative
Official package documentation for the Go-maintained errgroup helper.
Use when
- when should I use errgroup in Go
- how does errgroup cancel sibling goroutines
- is errgroup better than WaitGroup here
Keywords
- errgroup, x/sync, goroutine group, cancellation, parallel work