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

Method _get_loop

Lib/asyncio/mixins.py:12–21  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

10 _loop = None
11
12 def _get_loop(self):
13 loop = events._get_running_loop()
14
15 if self._loop is None:
16 with _global_lock:
17 if self._loop is None:
18 self._loop = loop
19 if loop is not self._loop:
20 raise RuntimeError(f'{self!r} is bound to a different event loop')
21 return loop

Callers 12

putMethod · 0.80
getMethod · 0.80
all_tasksFunction · 0.80
ensure_futureFunction · 0.80
gatherFunction · 0.80
shieldFunction · 0.80
acquireMethod · 0.80
waitMethod · 0.80
waitMethod · 0.80
acquireMethod · 0.80
_run_until_complete_cbFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected