PyDocs

Nav

Networking and Interprocess Communication

get_event_loop

asyncio

functionnot WASI
  • get_event_loop()
Return an asyncio event loop.

When called from a coroutine or a callback (e.g. scheduled with
call_soon or similar API), this function will always return the
running event loop.

If there is no running event loop set, the function will return
the result of `get_event_loop_policy().get_event_loop()` call.
Changed in 3.14
  • 3.14: Raises a RuntimeError if there is no current event loop.
0 Examples
No examples for asyncio/get_event_loop.
See Also
No see-alsos for asyncio/get_event_loop
0 Notes
No notes for get_event_loop