'Turn on RabbitMQ-proprietary Confirm mode in the channel.
For more information see:
http://www.rabbitmq.com/extensions.html#confirms'

def confirm_delivery(self):

    if self._delivery_confirmation:
        LOGGER.error('confirm_delivery:    confirmation    was    already    enabled    on    channel=%s', self.channel_number)
        return
    with _CallbackResult() as select_ok_result:
        self._impl.add_callback(callback=select_ok_result.signal_once, replies=[pika.spec.Confirm.SelectOk], one_shot=True)
        self._impl.confirm_delivery(callback=self._message_confirmation_result.set_value_once, nowait=False)
        self._flush_output(select_ok_result.is_ready)
    self._delivery_confirmation = True
    self._impl.add_on_return_callback(self._on_puback_message_returned)
