eee
This commit is contained in:
@@ -39,17 +39,9 @@ class ActorProcess extends AbstractProcess
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return $this
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function onSigterm(): static
|
public function onSigterm(): void
|
||||||
{
|
{
|
||||||
// TODO: Implement onSigterm() method.
|
|
||||||
Coroutine::create(function () {
|
|
||||||
$sign = Coroutine::waitSignal(SIGINT | SIGTERM);
|
|
||||||
if ($sign) {
|
|
||||||
$this->onShutdown(true);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return $this;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user