Workerman\Events\EventInterface::destroy()
*/
public function destroy()
{
Event::exitpublic function loop()
{
// 阻塞等待
Event::wait();
// 确定loop为退出状态
exitcoroutine) {
Coroutine::cancel($coroutine);
}
// 退出event loop
Event::exitx的过程中还找到了一些workerman的swoole驱动的bug,我进行了PR,积极参与维护,[fix: all coroutines must be canceled before Event::exit