Practice
Learn
← Quit
0 / 0 correct
Go
Hard
1 of 40
What does errgroup.Group (golang.org/x/sync/errgroup) add over sync.WaitGroup?
A
It runs goroutines sequentially
B
It limits memory use
C
It retries failed goroutines
D
It collects the first error, and with WithContext cancels the shared context so other goroutines can stop early