src/Uploading/StrategiesQueue.php
public function detach($priority)
    {
        if ($this->started) {
            throw new RuntimeException('Unable during invoking.');
        }
        if (isset($this->queue[$priority])) {
            unset($this->queue[$priority]);
            $this->sortedQueue = null;
        }

        return $this;
    }
public function detach($priority)
    {
        if ($this->started) {
            throw new RuntimeException('Unable during invoking.');
        }
        if (isset($this->queue[$priority])) {
            unset($this->queue[$priority]);
            $this->sortedQueue = null;
        }

        return $this;
    }
public function detach ( $ priority ) { if ( $ this -> started ) { throw new RuntimeException ( 'Unable during invoking.' ) ; } if ( isset ( $ this -> queue [ $ priority ] ) ) { unset ( $ this -> queue [ $ priority ] ) ; $ this -> sortedQueue = null ; } return $ this ; }
Detaches of the upload strategy with the specific priority.

@param int $priority The priority

@throws \RuntimeException If try to detach during invoking

@return self
Detaches of the upload strategy with the specific priority .