src/OrderedExecutionQueue.php
protected function next()
    {
        $promiseOrValue = array_shift($this->queue);
        $promise = resolve($promiseOrValue);
        $this->cancellationQueue->enqueue($promise);
        return $promise;
    }
protected function next()
    {
        $promiseOrValue = array_shift($this->queue);
        $promise = resolve($promiseOrValue);
        $this->cancellationQueue->enqueue($promise);
        return $promise;
    }
protected function next ( ) { $ promiseOrValue = array_shift ( $ this -> queue ) ; $ promise = resolve ( $ promiseOrValue ) ; $ this -> cancellationQueue -> enqueue ( $ promise ) ; return $ promise ; }
Get next promise from queue
@return ExtendedPromiseInterface
Get next promise from queue