public function dequeue()
    {
        // if there is only one queue defined, let's use that
        if(count($this->getQueues()) === 1) {
            return $this->getFirstQueue()->dequeue();
        }

        // default: getting a task using the current task selector strategy
        return $this->selectorStrategy->pickNextTask($this->getQueues());
    }
public function dequeue()
    {
        // if there is only one queue defined, let's use that
        if(count($this->getQueues()) === 1) {
            return $this->getFirstQueue()->dequeue();
        }

        // default: getting a task using the current task selector strategy
        return $this->selectorStrategy->pickNextTask($this->getQueues());
    }
public function dequeue ( ) { // if there is only one queue defined, let's use that if ( count ( $ this -> getQueues ( ) ) === 1 ) { return $ this -> getFirstQueue ( ) -> dequeue ( ) ; } // default: getting a task using the current task selector strategy return $ this -> selectorStrategy -> pickNextTask ( $ this -> getQueues ( ) ) ; }
Receive a task from a specified queue or from a queue selected by a predefined strategy

@inheritdoc
Receive a task from a specified queue or from a queue selected by a predefined strategy