▲ | porridgeraisin 2 days ago | |
Love this. Majority of concurrency in a usual web service is implemented using waitgroups IME (see below) This will greatly simplify it.
BTW, this can already be done with a wrapper type
Since you're doing struct embedding you can call methods of sync.WaitGroup on the new WaitGroup type as well. |