$eventBase
$eventBase
An ext-event based event-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.
scheduleTimer(\React\EventLoop\Timer\TimerInterface $timer)
Schedule a timer for execution.
\React\EventLoop\Timer\TimerInterface | $timer |
unsubscribeStreamEvent(\React\EventLoop\stream $stream, integer $flag)
Update the ext-event Event object for this stream to stop listening to the given event type, or remove it entirely if it's no longer needed.
\React\EventLoop\stream | $stream | |
integer | $flag | Event::READ or Event::WRITE |