Icicle\Loop\AbstractLoop::tick PHP Method

tick() public method

public tick ( boolean $blocking = true )
$blocking boolean
    public function tick(bool $blocking = true)
    {
        // Dispatch all pending I/O, timers, and signal callbacks.
        $this->dispatch($blocking && $this->callableQueue->isEmpty() && $this->immediateManager->isEmpty());
        if ($blocking) {
            $this->immediateManager->tick();
        }
        $this->callableQueue->call();
        // Call each callback in the tick queue (up to the max depth).
    }