Per the subject, asyncio.set_event_loop_policy is deprecated and slated for removal in python 3.16. I tried to find in the pygobject docs what the alternative is but it does not say. What is the correct way to use asyncio in a GLib/Gtk project?
I don’t think I can absolutely answer it myself, so until someone does, take a look at these:
Thanks, but that is confusing. The context manager is suggested in the bug report but this just results in a similar deprecation warning
.
If I understand correctly, using the context manager is the future-proof implementation for pygobject users.
Under the hood pygobject still uses the deprecated asyncio method, until a proper solution is found for python 3.16.
Oh, yeah that makes sense and will be good enough for now. Thx