MCPcopy Index your code
hub / github.com/python/cpython / new_event_loop

Function new_event_loop

Lib/asyncio/events.py:842–844  ·  view source on GitHub ↗

Equivalent to calling get_event_loop_policy().new_event_loop().

()

Source from the content-addressed store, hash-verified

840
841
842def new_event_loop():
843 """Equivalent to calling get_event_loop_policy().new_event_loop()."""
844 return _get_event_loop_policy().new_event_loop()
845
846
847# Alias pure-Python implementations for testing purposes.

Callers

nothing calls this directly

Calls 2

_get_event_loop_policyFunction · 0.85
new_event_loopMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…