src/Bunny/ChannelMethods.php
public function cancel($consumerTag, $nowait = false)
    {
        return $this->getClient()->cancel($this->getChannelId(), $consumerTag, $nowait);
    }
public function cancel($consumerTag, $nowait = false)
    {
        return $this->getClient()->cancel($this->getChannelId(), $consumerTag, $nowait);
    }
public function cancel ( $ consumerTag , $ nowait = false ) { return $ this -> getClient ( ) -> cancel ( $ this -> getChannelId ( ) , $ consumerTag , $ nowait ) ; }
Calls basic.cancel AMQP method.

@param string $consumerTag
@param boolean $nowait

@return boolean|Promise\PromiseInterface|Protocol\MethodBasicCancelOkFrame
Calls basic . cancel AMQP method .