grpool
grpool copied to clipboard
Lightweight Goroutine pool
https://github.com/ivpusic/grpool/blob/28957a27c9441f178d644aa598bac0aad4dd7bba/grpool.go#L55
example: routine 1: wg.Add(10) then emit 10 go func wg.Done() routine 2: wg.Add(2) then emit 2 func wg.Done() when pool is Wait() ready, the result maybe composed by 8 routine...
Maybe support for asynchronous mechanisms is better.
i think it's better to add panic recover for each worker go routine && i see #1 has add this feature, but i cannot see this code in the master...