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