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