public function getWork(Employee $employee)
    {
        $job = $this->pipeline->dequeue($employee->getOptions());

        if (is_null($job)) {
            usleep(10000);
        }

        return $job;
    }
public function getWork(Employee $employee)
    {
        $job = $this->pipeline->dequeue($employee->getOptions());

        if (is_null($job)) {
            usleep(10000);
        }

        return $job;
    }
public function getWork ( Employee $ employee ) { $ job = $ this -> pipeline -> dequeue ( $ employee -> getOptions ( ) ) ; if ( is_null ( $ job ) ) { usleep ( 10000 ) ; } return $ job ; }
Obtain a job from the pipeline for the given Employee.
@return \Emphloyer\Job|null
Obtain a job from the pipeline for the given Employee .