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

Method _spawn_process

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

Source from the content-addressed store, hash-verified

775 self._spawn_process()
776
777 def _spawn_process(self):
778 p = self._mp_context.Process(
779 target=_process_worker,
780 args=(self._call_queue,
781 self._result_queue,
782 self._initializer,
783 self._initargs,
784 self._max_tasks_per_child))
785 p.start()
786 self._processes[p.pid] = p
787
788 def submit(self, fn, /, *args, **kwargs):
789 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