conc - better structured concurrency for go
concis your toolbelt for structured concurrency in go, making common tasks easier and safer.
The main goals of the package are:
- Make it harder to leak goroutines
- Handle panics gracefully
- Make concurrent code easier to read
conc, the owner of a goroutine is always a
conc.WaitGroup. Goroutines are spawned in a
(*WaitGroup).Wait()should always be called before the
WaitGroupgoes out of scope.
references Go statement considered harmful in the README 😍