\React\EventLoop\TickFutureTickQueue

Summary

Methods
Properties
Constants
__construct()
add()
tick()
isEmpty()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$eventLoop
$queue
N/A

Properties

$eventLoop

$eventLoop : 

Type

$queue

$queue : 

Type

Methods

__construct()

__construct(\React\EventLoop\LoopInterface  $eventLoop) 

Parameters

\React\EventLoop\LoopInterface $eventLoop

The event loop passed as the first parameter to callbacks.

add()

add(callable  $listener) 

Add a callback to be invoked on a future tick of the event loop.

Callbacks are guaranteed to be executed in the order they are enqueued.

Parameters

callable $listener

The callback to invoke.

tick()

tick() 

Flush the callback queue.

isEmpty()

isEmpty() : boolean

Check if the next tick queue is empty.

Returns

boolean