Re:Go Things I Love: Channels and Goroutines
by shhsshs on Tuesday January 07, 2020 @07:32PM
(#21986936)
I prefer to call add once if I know how many routines I will create.
You still have to call wg.Done(), unfortunately. People have written small wrappers around sync.WaitGroup that change the interface:
[ Parent
| on HN ]
There are no comments on this comment yet.