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

Method _help_stuff_finish

Lib/multiprocessing/pool.py:946–954  ·  view source on GitHub ↗
(inqueue, task_handler, size)

Source from the content-addressed store, hash-verified

944
945 @staticmethod
946 def _help_stuff_finish(inqueue, task_handler, size):
947 # drain inqueue, and put sentinels at its head to make workers finish
948 try:
949 while True:
950 inqueue.get(block=False)
951 except queue.Empty:
952 pass
953 for i in range(size):
954 inqueue.put(None)
955
956 def _wait_for_updates(self, sentinels, change_notifier, timeout):
957 time.sleep(timeout)

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected