diff --git a/HttpServer/Events/OnWorkerStart.php b/HttpServer/Events/OnWorkerStart.php index 3711d83d..23758c97 100644 --- a/HttpServer/Events/OnWorkerStart.php +++ b/HttpServer/Events/OnWorkerStart.php @@ -37,7 +37,7 @@ class OnWorkerStart extends Callback public function onHandler(Server $server, int $worker_id): void { Coroutine::set(['enable_deadlock_check' => false]); - Coroutine::create(function () use ($server, $worker_id) { + Coroutine\go(function () use ($server, $worker_id) { $this->onTaskSignal($server, $worker_id); });