__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.