sleep
reactphp/event-loop
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Delay execution
sleep
(
int $seconds
):
int
} elseif (
$timeout
===
null
) {
\sleep
(
PHP_INT_MAX
);
}
return
0
;
src/StreamSelectLoop.php
sleep
(
1
);
$timers
->
add
(new
Timer
(
0.5
, function () {
$this
->
fail
(
"Timer shouldn't be called"
);
}));
tests/Timer/TimersTest.php