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

Method _check_running

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

Source from the content-addressed store, hash-verified

632 self.call_soon_threadsafe(future.set_exception, ex)
633
634 def _check_running(self):
635 if self.is_running():
636 raise RuntimeError('This event loop is already running')
637 if events._get_running_loop() is not None:
638 raise RuntimeError(
639 'Cannot run the event loop while another loop is running')
640
641 def _run_forever_setup(self):
642 """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