MCPcopy Index your code
hub / github.com/RustPython/RustPython / get_running_loop

Function get_running_loop

Lib/asyncio/events.py:753–762  ·  view source on GitHub ↗

Return the running event loop. Raise a RuntimeError if there is none. This function is thread-specific.

()

Source from the content-addressed store, hash-verified

751
752
753def get_running_loop():
754 """Return the running event loop. Raise a RuntimeError if there is none.
755
756 This function is thread-specific.
757 """
758 # NOTE: this function is implemented in C (see _asynciomodule.c)
759 loop = _get_running_loop()
760 if loop is None:
761 raise RuntimeError('no running event loop')
762 return loop
763
764
765def _get_running_loop():

Callers

nothing calls this directly

Calls 1

_get_running_loopFunction · 0.90

Tested by

no test coverage detected