[Swoole entry to advanced] [featured open class] Swoole-4.4.4 coroutine function provides WaitGroup

 

In Swoole4 channel may be used to communicate between the coroutine, dependency management, synchronization coroutine.

In simple terms, WaitGroup is to use the channel of the mechanism for the main coroutine wait for all children to exit after the end of coroutine function.

 

Course http://www.yzmedu.com/learn/8906

Code https://github.com/farwish/swoole-wholly

Link https://www.cnblogs.com/farwish/p/11410212.html

Guess you like

Origin www.cnblogs.com/farwish/p/11421692.html