public function tick() { $this->flowController->isRunning = true; $this->nextTickQueue->tick(); $this->futureTickQueue->tick(); $this->timers->tick(); $this->waitForStreamActivity(0); $this->flowController->isRunning = false; }