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

Method _do_shutdown

Lib/asyncio/base_events.py:619–627  ·  view source on GitHub ↗
(self, future)

Source from the content-addressed store, hash-verified

617 thread.join()
618
619 def _do_shutdown(self, future):
620 try:
621 self._default_executor.shutdown(wait=True)
622 if not self.is_closed():
623 self.call_soon_threadsafe(futures._set_result_unless_cancelled,
624 future, None)
625 except Exception as ex:
626 if not self.is_closed() and not future.cancelled():
627 self.call_soon_threadsafe(future.set_exception, ex)
628
629 def _check_running(self):
630 if self.is_running():

Callers

nothing calls this directly

Calls 4

is_closedMethod · 0.95
call_soon_threadsafeMethod · 0.95
shutdownMethod · 0.45
cancelledMethod · 0.45

Tested by

no test coverage detected