Glossary: System Design Basics in Go
sync.WaitGroup
Also written: WaitGroup
A Go counter for waiting on goroutines or messages: `Add(1)` for each, `Done()` when one finishes and `Wait()` blocks until the count is zero.
Glossary: System Design Basics in Go
Also written: WaitGroup
A Go counter for waiting on goroutines or messages: `Add(1)` for each, `Done()` when one finishes and `Wait()` blocks until the count is zero.