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

Method shutdown

Lib/concurrent/futures/process.py:842–860  ·  view source on GitHub ↗
(self, wait=True, *, cancel_futures=False)

Source from the content-addressed store, hash-verified

840 return _chain_from_iterable_of_lists(results)
841
842 def shutdown(self, wait=True, *, cancel_futures=False):
843 with self._shutdown_lock:
844 self._cancel_pending_futures = cancel_futures
845 self._shutdown_thread = True
846 if self._executor_manager_thread_wakeup is not None:
847 # Wake up queue management thread
848 self._executor_manager_thread_wakeup.wakeup()
849
850 if self._executor_manager_thread is not None and wait:
851 self._executor_manager_thread.join()
852 # To reduce the risk of opening too many files, remove references to
853 # objects that use file descriptors.
854 self._executor_manager_thread = None
855 self._call_queue = None
856 if self._result_queue is not None and wait:
857 self._result_queue.close()
858 self._result_queue = None
859 self._processes = None
860 self._executor_manager_thread_wakeup = None
861
862 shutdown.__doc__ = _base.Executor.shutdown.__doc__

Callers 3

mainMethod · 0.95
test_shutdown_no_waitMethod · 0.95

Calls 3

wakeupMethod · 0.45
joinMethod · 0.45
closeMethod · 0.45

Tested by 3

mainMethod · 0.76
test_shutdown_no_waitMethod · 0.76