/** * Determines if there are any pending tasks in the loop. * * @return bool */ public function isEmpty() : bool { return $this->pollManager->isEmpty() && $this->awaitManager->isEmpty() && $this->timerManager->isEmpty() && $this->callableQueue->isEmpty() && $this->immediateManager->isEmpty() && (null === $this->signalManager || $this->signalManager->isEmpty()); }