goccm icon indicating copy to clipboard operation
goccm copied to clipboard

request

Open zeyujiang opened this issue 3 years ago • 0 comments

goccm needs to export the concurrencyManager for a regular func to work: e.g.

func main() { var ccm = goccm.New(10) for int i = 0; i < 50; i++ { ccm.Wait() go myfunc(ccm) } // .... ccm.WaitAllDone() }

func myfunc(ccm *T) { defer ccm.Done() // doing some work .... }

zeyujiang avatar Jun 19 '22 12:06 zeyujiang