src/Bunny/Channel.php
public function cancel($consumerTag, $nowait = false)
    {
        $response = $this->cancelImpl($consumerTag, $nowait);
        unset($this->deliverCallbacks[$consumerTag]);
        return $response;
    }
public function cancel($consumerTag, $nowait = false)
    {
        $response = $this->cancelImpl($consumerTag, $nowait);
        unset($this->deliverCallbacks[$consumerTag]);
        return $response;
    }
public function cancel ( $ consumerTag , $ nowait = false ) { $ response = $ this -> cancelImpl ( $ consumerTag , $ nowait ) ; unset ( $ this -> deliverCallbacks [ $ consumerTag ] ) ; return $ response ; }
Cancels given consumer subscription.

@param string $consumerTag
@param bool $nowait
@return bool|Protocol\MethodBasicCancelOkFrame|PromiseInterface
Cancels given consumer subscription .