This commit is contained in:
as2252258@163.com
2021-02-27 04:54:32 +08:00
parent 2c46dd4e57
commit d98c7ee714
+3 -3
View File
@@ -39,9 +39,9 @@ class OnWorkerStart extends Callback
{
Coroutine::set([
'enable_deadlock_check' => false,
// 'exit_condition' => function () {
// return Coroutine::stats()['coroutine_num'] === 0;
// }
'exit_condition' => function () {
return Coroutine::stats()['coroutine_num'] === 0;
}
]);
putenv('workerId=' . $worker_id);