add() public method

Callbacks are guaranteed to be executed in the order they are enqueued, before any timer or stream events.
public add ( callable $listener )
$listener callable
Example #1
0
 /**
  * @override
  * @inheritDoc
  */
 public function onAfterTick(callable $listener)
 {
     $this->futureTickQueue->add($listener);
 }