$loop
$loop
addTimer( $interval, callable $callback) : \React\EventLoop\Timer\TimerInterface
Enqueue a callback to be invoked once after the given interval.
The execution order of timers scheduled to execute at the same time is not guaranteed.
$interval | ||
callable | $callback |
addPeriodicTimer( $interval, callable $callback) : \React\EventLoop\Timer\TimerInterface
Enqueue a callback to be invoked repeatedly after the given interval.
The execution order of timers scheduled to execute at the same time is not guaranteed.
$interval | ||
callable | $callback |
cancelTimer(\React\EventLoop\Timer\TimerInterface $timer)
Cancel a pending timer.
\React\EventLoop\Timer\TimerInterface | $timer |
isTimerActive(\React\EventLoop\Timer\TimerInterface $timer) : boolean
Check if a given timer is active.
\React\EventLoop\Timer\TimerInterface | $timer |
True if the timer is still enqueued for execution.