grpool icon indicating copy to clipboard operation
grpool copied to clipboard

if a pool instance used cross go routine, wg.Add() wg.Done() not work correctly as purpose

Open rabbitHX opened this issue 5 years ago • 0 comments

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 1 + 2 routine 2

rabbitHX avatar Apr 09 '21 09:04 rabbitHX