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

Method join

Lib/asyncio/queues.py:239–248  ·  view source on GitHub ↗

Block 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 calls task_done() to indicate that the item was retrieved and all work on it is complete.

(self)

Source from the content-addressed store, hash-verified

237 self._finished.set()
238
239 async def join(self):
240 """Block until all items in the queue have been gotten and processed.
241
242 The count of unfinished tasks goes up whenever an item is added to the
243 queue. The count goes down whenever a consumer calls task_done() to
244 indicate that the item was retrieved and all work on it is complete.
245 When the count of unfinished tasks drops to zero, join() unblocks.
246 """
247 if self._unfinished_tasks > 0:
248 await self._finished.wait()
249
250 def shutdown(self, immediate=False):
251 """Shut-down the queue, making queue gets and puts raise QueueShutDown.

Callers 15

nameprepFunction · 0.45
decodeMethod · 0.45
_buffer_decodeMethod · 0.45
_task_reprFunction · 0.45
__repr__Method · 0.45
__repr__Method · 0.45
_do_read__copiedMethod · 0.45
__repr__Method · 0.45
__repr__Method · 0.45
__repr__Method · 0.45
__repr__Method · 0.45
format_call_graphFunction · 0.45

Calls 1

waitMethod · 0.45

Tested by 12

test_get_regionMethod · 0.36
test_good_argsMethod · 0.36
test_saveMethod · 0.36
setUpClassMethod · 0.36
test_curdirMethod · 0.36
test_baseMethod · 0.36
test_recurseMethod · 0.36
test_bad_encodingMethod · 0.36