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

Method _do_shutdown

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

Source from the content-addressed store, hash-verified

622 thread.join()
623
624 def _do_shutdown(self, future):
625 try:
626 self._default_executor.shutdown(wait=True)
627 if not self.is_closed():
628 self.call_soon_threadsafe(futures._set_result_unless_cancelled,
629 future, None)
630 except Exception as ex:
631 if not self.is_closed() and not future.cancelled():
632 self.call_soon_threadsafe(future.set_exception, ex)
633
634 def _check_running(self):
635 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