# File lib/amq/client/async/extensions/rabbitmq/confirm.rb, line 101
              def confirm_select(nowait = false, &block)
                if nowait && block
                  raise ArgumentError, "confirm.select with nowait = true and a callback makes no sense"
                end

                @uses_publisher_confirmations = true
                self.redefine_callback(:confirm_select, &block) unless nowait
                @connection.send_frame(Protocol::Confirm::Select.encode(@id, nowait))

                self
              end