src/Queue/RedisQueue.php
public function get($block = false)
    {
        if (!$block) {
            return $this->redis->rPop($this->channel);
        } else {
            while (true) {
                $record = $this->redis->rPop($this->channel);
                if ($record === false) {
                    usleep(1000);
                    continue;
                }

                return $record;
            }
        }
    }
public function get($block = false)
    {
        if (!$block) {
            return $this->redis->rPop($this->channel);
        } else {
            while (true) {
                $record = $this->redis->rPop($this->channel);
                if ($record === false) {
                    usleep(1000);
                    continue;
                }

                return $record;
            }
        }
    }
public function get ( $ block = false ) { if ( ! $ block ) { return $ this -> redis -> rPop ( $ this -> channel ) ; } else { while ( true ) { $ record = $ this -> redis -> rPop ( $ this -> channel ) ; if ( $ record === false ) { usleep ( 1000 ) ; continue ; } return $ record ; } } }
get value from the queue

@param bool $block if block when the queue is empty
@return bool|string
get value from the queue