protected function start() : array { $count = \max(1, $this->workerCount ?? LoopConfig::getCpuCount()); $starting = []; for ($i = 1; $i <= $count; $i++) { $starting[] = $this->spawnWorker($i); } return $starting; }
/** * {@inheritdoc} */ public static function getMaxSize() : int { return LoopConfig::getCpuCount() * 2; }