You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove dependency on deprecated functionality
Since Python 3.14 the get_event_loop function throws a runtime error
when no event_loop is defined yet. So using get_event_loop when no event
loop is defined yet is not possible anymore. So I created a function to
mimic this behavior. This ensures the event_loop context to be created
when there is none present (when using the CLI for example), or uses the
existing one when called from another library in an async context.
This is documented
[here](https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.get_event_loop)