Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix: Call wg.Add in main goroutine to avoid race conditons. #3433
1. Why is this pull request needed and what does it do?
If the goroutine call wg.Add by itself, what if the main goroutine run to the end before goroutine start runing? May there are chances.
2. Which issues (if any) are related?
3. Which documentation changes (if any) need to be made?
4. Does this introduce a backward incompatible change or deprecation?
Thank you for your contribution. I've just checked the OWNERS files to find a suitable reviewer. This search was successful and I've asked chrisohaver (via
how does this relate to the docs?