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.
コード例 #1
0
 /**
  * Return next job from the queue.
  * @return Job
  */
 public function fetch()
 {
     return $this->strategy->fetch();
 }
コード例 #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();
 }