(self)
| 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: |
no test coverage detected