sleep
laravel/octane
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Delay execution
sleep
(
int $seconds
):
int
protected function
runServer
(
$server
,
$inspector
,
$type
)
{
while (!
$server
->
isStarted
()) {
sleep
(
1
);
}
$this
->
writeServerRunningMessage
();
src/Commands/Concerns/InteractsWithServers.php
$this
->
extension
->
dispatchProcessSignal
(
$processId
,
SIGTERM
);
sleep
(
1
);
} while (
time
() <
$start
+
$wait
);
}
src/Swoole/SignalDispatcher.php