Skip to content

Core\Signal

Runs a function of your program when the process gets a signal to stop. The program can then finish its work cleanly. Core\Server::isDraining() tells whether a shutdown has started.

Members

1 member.

MemberSignature
onShutdownonShutdown(callable(): mixed $handler): void