\React\EventLoop\TickNextTickQueue

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 the next tick of the event loop.

Callbacks are guaranteed to be executed in the order they are enqueued, before any timer or stream events.

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