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

Method get_loop

Lib/asyncio/runners.py:82–85  ·  view source on GitHub ↗

Return embedded event loop.

(self)

Source from the content-addressed store, hash-verified

80 self._state = _State.CLOSED
81
82 def get_loop(self):
83 """Return embedded event loop."""
84 self._lazy_init()
85 return self._loop
86
87 def run(self, coro, *, context=None):
88 """Run code in the embedded event loop."""

Callers 2

test_explicit_closeMethod · 0.95
test_double_closeMethod · 0.95

Calls 1

_lazy_initMethod · 0.95

Tested by 2

test_explicit_closeMethod · 0.76
test_double_closeMethod · 0.76