Pointers and Variables in WaitGroups Reference
In the sync package, the functions Add, Done, and Wait are all called by a pointer to a WaitGroup:
In the provided code snippet, the Done function is called using a pointer variable, while the Add and Wait functions are called using a variable (not a pointer).
However, all three functions are called on the same WaitGroup value.
Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.
Copyright© 2022 湘ICP备2022001581号-3