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

Method join

Lib/multiprocessing/pool.py:659–669  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

657 self._terminate()
658
659 def join(self):
660 util.debug('joining pool')
661 if self._state == RUN:
662 raise ValueError("Pool is still running")
663 elif self._state not in (CLOSE, TERMINATE):
664 raise ValueError("In unknown state")
665 self._worker_handler.join()
666 self._task_handler.join()
667 self._result_handler.join()
668 for p in self._pool:
669 p.join()
670
671 @staticmethod
672 def _help_stuff_finish(inqueue, task_handler, size):

Callers 15

test_async_timeoutMethod · 0.95
test_make_poolMethod · 0.95
test_terminateMethod · 0.95
test_empty_iterableMethod · 0.95
test_enterMethod · 0.95
test_resource_warningMethod · 0.95
test_pool_initializerMethod · 0.95
pool_in_processFunction · 0.95

Calls 1

debugMethod · 0.45

Tested by 13

test_async_timeoutMethod · 0.76
test_make_poolMethod · 0.76
test_terminateMethod · 0.76
test_empty_iterableMethod · 0.76
test_enterMethod · 0.76
test_resource_warningMethod · 0.76
test_pool_initializerMethod · 0.76
pool_in_processFunction · 0.76