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

Method join

Lib/queue.py:94–105  ·  view source on GitHub ↗

Blocks until all items in the Queue have been gotten and processed. The count of unfinished tasks goes up whenever an item is added to the queue. The count goes down whenever a consumer thread calls task_done() to indicate the item was retrieved and all work on it is complet

(self)

Source from the content-addressed store, hash-verified

92 self.unfinished_tasks = unfinished
93
94 def join(self):
95 '''Blocks until all items in the Queue have been gotten and processed.
96
97 The count of unfinished tasks goes up whenever an item is added to the
98 queue. The count goes down whenever a consumer thread calls task_done()
99 to indicate the item was retrieved and all work on it is complete.
100
101 When the count of unfinished tasks drops to zero, join() unblocks.
102 '''
103 with self.all_tasks_done:
104 while self.unfinished_tasks:
105 self.all_tasks_done.wait()
106
107 def qsize(self):
108 '''Return the approximate size of the queue (not reliable!).'''

Callers 15

mainFunction · 0.45
mainFunction · 0.45
email-mime.pyFile · 0.45
getTextFunction · 0.45
mainFunction · 0.45
rtd_switcher.jsFile · 0.45
write_documentsMethod · 0.45
finishMethod · 0.45
_display_labelsFunction · 0.45
parse_platformsMethod · 0.45

Calls 1

waitMethod · 0.45

Tested by 15

mainFunction · 0.36
_module_relative_pathFunction · 0.36
parseMethod · 0.36
_parse_exampleMethod · 0.36
_failure_headerMethod · 0.36
__runMethod · 0.36
check_outputMethod · 0.36
output_differenceMethod · 0.36
format_failureMethod · 0.36
__repr__Method · 0.36
idMethod · 0.36
script_from_examplesFunction · 0.36