Skip to content

Glossary: Go Beyond the Basics

errgroup.WithContext

Makes an errgroup plus a context that is canceled as soon as any goroutine returns an error, so the others can stop early.

Where the book teaches it

Related terms

errgroupcontext (context.Context)