modify
This commit is contained in:
@@ -71,11 +71,8 @@ class OnWorkerStart extends Callback
|
|||||||
Coroutine::sleep(1);
|
Coroutine::sleep(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
go(function () use ($server) {
|
|
||||||
var_dump(Coroutine::waitPid($server->worker_id));
|
|
||||||
|
|
||||||
});
|
|
||||||
$server->stop($workerId, true);
|
$server->stop($workerId, true);
|
||||||
|
var_dump(Coroutine::waitPid($server->worker_id));
|
||||||
} catch (\Throwable $exception) {
|
} catch (\Throwable $exception) {
|
||||||
$this->addError($exception);
|
$this->addError($exception);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user