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

Method get_loop

Lib/asyncio/futures.py:132–137  ·  view source on GitHub ↗

Return the event loop the Future is bound to.

(self)

Source from the content-addressed store, hash-verified

130 return frozenset(self.__asyncio_awaited_by)
131
132 def get_loop(self):
133 """Return the event loop the Future is bound to."""
134 loop = self._loop
135 if loop is None:
136 raise RuntimeError("Future object is not initialized.")
137 return loop
138
139 def _make_cancelled_error(self):
140 """Create the CancelledError to raise if the Future is cancelled.

Callers 1

_callSetUpMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected