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

Method get_event_loop

Lib/asyncio/events.py:668–676  ·  view source on GitHub ↗

Get the event loop for the current context. Returns an event loop object implementing the AbstractEventLoop interface, or raises an exception in case no event loop has been set for the current context and the current policy does not specify to create one. It should

(self)

Source from the content-addressed store, hash-verified

666 """Abstract policy for accessing the event loop."""
667
668 def get_event_loop(self):
669 """Get the event loop for the current context.
670
671 Returns an event loop object implementing the AbstractEventLoop interface,
672 or raises an exception in case no event loop has been set for the
673 current context and the current policy does not specify to create one.
674
675 It should never return None."""
676 raise NotImplementedError
677
678 def set_event_loop(self, loop):
679 """Set the event loop for the current context to loop."""

Callers 8

get_event_loopFunction · 0.45
__init__Method · 0.45
wrap_futureFunction · 0.45
__init__Method · 0.45
ensure_futureFunction · 0.45
gatherFunction · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected