def basic_cancel(self, consumer_tag='', nowait=False):
        if PYPY and not self._consuming:
            return
        if not self._consuming:
            raise exceptions.NotConsumingError()
        self.channel._cancel_consumer(self, consumer_tag, nowait)
        self._consuming = False
End a queue consumer
dataset/ETHPy150Open gmr/rabbitpy/rabbitpy/amqp.py/AMQP.basic_cancel