function pop()
    {
        $response = $this->redis->blPop($this->key, 10);

        if ($response) {
            list($list, $serializedJob) = $response;

            $job = unserialize($serializedJob);
            return $job;
        }
    }
function pop()
    {
        $response = $this->redis->blPop($this->key, 10);

        if ($response) {
            list($list, $serializedJob) = $response;

            $job = unserialize($serializedJob);
            return $job;
        }
    }
function pop ( ) { $ response = $ this -> redis -> blPop ( $ this -> key , 10 ) ; if ( $ response ) { list ( $ list , $ serializedJob ) = $ response ; $ job = unserialize ( $ serializedJob ) ; return $ job ; } }
Does a Redis BLPOP on the queue, and blocks until a job is available.

@return Job
Does a Redis BLPOP on the queue and blocks until a job is available .