'Create a new instance of the AsyncioConnection class, connecting
to RabbitMQ automatically
:param pika.connection.Parameters parameters: Connection parameters
:param on_open_callback: The method to call when the connection is open
:type on_open_callback: method
:param on_open_error_callback: Method to call if the connection cant be opened
:type on_open_error_callback: method
:param asyncio.AbstractEventLoop loop: By default asyncio.get_event_loop()'

def __init__(self, parameters=None, on_open_callback=None, on_open_error_callback=None, on_close_callback=None, stop_ioloop_on_close=False, custom_ioloop=None):

    self.sleep_counter = 0
    self.loop = (custom_ioloop or asyncio.get_event_loop())
    self.ioloop = IOLoopAdapter(self.loop)
    super().__init__(parameters, on_open_callback, on_open_error_callback, on_close_callback, self.ioloop, stop_ioloop_on_close=stop_ioloop_on_close)
