Skip to content

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.

Where the book teaches it

Related terms

goroutinechannel