Method |
Description |
|
__construct ( ) |
React constructor. |
|
add ( $fd, $flag, $func, array $args = [] ) : boolean |
Add event listener to event loop. |
|
addPeriodicTimer ( integer | float $interval, callable $callback ) : React\EventLoop\Timer\TimerInterface |
Enqueue a callback to be invoked repeatedly after the given interval. |
|
addReadStream ( resource $stream, callable $listener ) |
Register a listener to be notified when a stream is ready to read. |
|
addTimer ( integer | float $interval, callable $callback ) : React\EventLoop\Timer\TimerInterface |
Enqueue a callback to be invoked once after the given interval. |
|
addWriteStream ( resource $stream, callable $listener ) |
Register a listener to be notified when a stream is ready to write. |
|
cancelTimer ( React\EventLoop\Timer\TimerInterface $timer ) |
Cancel a pending timer. |
|
del ( mixed $fd, integer $flag ) : boolean |
Remove event listener from event loop. |
|
futureTick ( callable $listener ) |
Schedule a callback to be invoked on a future tick of the event loop. |
|
isTimerActive ( React\EventLoop\Timer\TimerInterface $timer ) : boolean |
Check if a given timer is active. |
|
loop ( ) : void |
Main loop. |
|
nextTick ( callable $listener ) |
Schedule a callback to be invoked on the next tick of the event loop. |
|
removeReadStream ( resource $stream ) |
Remove the read event listener for the given stream. |
|
removeStream ( resource $stream ) |
Remove all listeners for the given stream. |
|
removeWriteStream ( resource $stream ) |
Remove the write event listener for the given stream. |
|
run ( ) |
Run the event loop until there are no more tasks to perform. |
|
stop ( ) |
Instruct a running event loop to stop. |
|
tick ( ) |
Perform a single iteration of the event loop. |
|