DEV Community

Discussion on: Synchronizing Go Routines with Channels and WaitGroups

Collapse
 
hickeng profile image
George Hicken

Given you have a known number of routines and a hardcoded number to waitgroup.Add, did you consider using a channel with a buffer of 3? What made you take the solution above over buffering?