python-zeroconf icon indicating copy to clipboard operation
python-zeroconf copied to clipboard

Future attached to a different loop

Open wiryonolau opened this issue 3 years ago • 0 comments
trafficstars

Hi I'm try running registry service using asyncio but it said in run on different loop ?

await self._zeroconf.async_register_service(service_info)

It return

[zeroconf/_utils/asyncio.py:44]  got Future <Future pending> attached to a different loop

Is there a way to pass my loop to the lib or maybe use asyncio.get_running_loop() instead ?

wiryonolau avatar Mar 01 '22 12:03 wiryonolau