fetch() public method

Returns the job.
public fetch ( ) : UrbanIndo\Yii2\Queue\Job | boolean
return UrbanIndo\Yii2\Queue\Job | boolean The job or false if not found.
Ejemplo n.º 1
0
 /**
  * Return next job from the queue.
  * @return Job
  */
 public function fetch()
 {
     return $this->strategy->fetch();
 }
Ejemplo n.º 2
0
 /**
  * Return next job from the queue.
  * @return Job|boolean The job fetched or false if not found.
  */
 protected function fetchJob()
 {
     return $this->strategy->fetch();
 }