Skip to content

Python 3.14 (@boosterl)

Latest

Choose a tag to compare

@aequitas aequitas released this 17 Mar 17:28
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)