Method
_help_stuff_finish
(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
Tested by
no test coverage detected