docs: def connect(self):
          """Connect to RabbitMQ, returning the connection handle.
  
          When the connection is established, the on_connection_open method
          will be invoked by pika.
  
          :rtype: pika.SelectConnection
          """
          logger.debug('Connecting to %s', self._url)
          return pika.SelectConnection(pika.URLParameters(self._url),
                                       self.on_connection_open,
                                       stop_ioloop_on_close=False)