Пример #1
0
 /**
  * Fill pool with jobs from queue
  */
 protected function fillPool()
 {
     while (!$this->pool->isFull() && !$this->pool->queueIsEmpty()) {
         $job = $this->pool->dequeue();
         $this->startJob($job);
     }
 }
Пример #2
0
 /**
  * @return Job
  */
 public function dequeue()
 {
     return $this->queue->dequeue();
 }