/** * Fill pool with jobs from queue */ protected function fillPool() { while (!$this->pool->isFull() && !$this->pool->queueIsEmpty()) { $job = $this->pool->dequeue(); $this->startJob($job); } }
/** * @return Job */ public function dequeue() { return $this->queue->dequeue(); }