Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rabbitHX opened this issue Apr 9, 2021 · 0 comments

Comments

@rabbitHX
Copy link

rabbitHX commented Apr 9, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant