public function shiftBlocking($timeout = 0)
    {
        $result = $this->_getRediskaOn()->shiftFromListBlocking($this->getName(), $timeout);

        if (!is_null($this->getExpire()) && $result) {
            $this->expire($this->getExpire(), $this->isExpireTimestamp());
        }

        return $result;
    }
public function shiftBlocking($timeout = 0)
    {
        $result = $this->_getRediskaOn()->shiftFromListBlocking($this->getName(), $timeout);

        if (!is_null($this->getExpire()) && $result) {
            $this->expire($this->getExpire(), $this->isExpireTimestamp());
        }

        return $result;
    }
public function shiftBlocking ( $ timeout = 0 ) { $ result = $ this -> _getRediskaOn ( ) -> shiftFromListBlocking ( $ this -> getName ( ) , $ timeout ) ; if ( ! is_null ( $ this -> getExpire ( ) ) && $ result ) { $ this -> expire ( $ this -> getExpire ( ) , $ this -> isExpireTimestamp ( ) ) ; } return $ result ; }
Return and remove the first element of the List and block if list empty or not exists

@param $timeout Blocking timeout
@return mixed
Return and remove the first element of the List and block if list empty or not exists