def loop(self): if not self._loop: get_logger().debug("Starting asyncio event loop") self._loop = asyncio.get_event_loop() return self._loop