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

Method _spawn_process

Lib/concurrent/futures/process.py:799–808  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

797 self._spawn_process()
798
799 def _spawn_process(self):
800 p = self._mp_context.Process(
801 target=_process_worker,
802 args=(self._call_queue,
803 self._result_queue,
804 self._initializer,
805 self._initargs,
806 self._max_tasks_per_child))
807 p.start()
808 self._processes[p.pid] = p
809
810 def submit(self, fn, /, *args, **kwargs):
811 with self._shutdown_lock:

Callers 2

_adjust_process_countMethod · 0.95
_launch_processesMethod · 0.95

Calls 2

ProcessMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected