Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23131

Is it possible to replace the loop created from asyncio with QtAsyncio?

$
0
0

I'm trying to use the QtAsyncio library in pyside 6 and with the python-snapcast library and i can't manage to find a way to replace the asyncio loop that the create_server function necessitates with something from QtAsyncio

I tried to use QtAsyncio.run since it creates the loop by itself but the create_server function necessitates a variable with the loop.server = QtAsyncio.run(create_server(ip_value))this is the normal implementation with asycnioserver = loop.run_until_complete(create_server(loop, 'localhost'))


Viewing all articles
Browse latest Browse all 23131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>