Predis\Pipeline\Pipeline::setRunning PHP Method

setRunning() private method

Marks the running status of the pipeline.
private setRunning ( boolean $bool )
$bool boolean Sets the running status of the pipeline.
    private function setRunning($bool)
    {
        if ($bool && $this->running) {
            throw new ClientException('The current pipeline context is already being executed.');
        }
        $this->running = $bool;
    }