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

Method _check_running

Lib/asyncio/base_events.py:629–634  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

627 self.call_soon_threadsafe(future.set_exception, ex)
628
629 def _check_running(self):
630 if self.is_running():
631 raise RuntimeError('This event loop is already running')
632 if events._get_running_loop() is not None:
633 raise RuntimeError(
634 'Cannot run the event loop while another loop is running')
635
636 def _run_forever_setup(self):
637 """Prepare the run loop to process events.

Callers 2

_run_forever_setupMethod · 0.95
run_until_completeMethod · 0.95

Calls 1

is_runningMethod · 0.95

Tested by

no test coverage detected