MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / join

Method join

tools/python-3.11.9-amd64/Lib/asyncio/queues.py:206–215  ·  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 comple

(self)

Source from the content-addressed store, hash-verified

204 self._finished.set()
205
206 async def join(self):
207 """Block until all items in the queue have been gotten and processed.
208
209 The count of unfinished tasks goes up whenever an item is added to the
210 queue. The count goes down whenever a consumer calls task_done() to
211 indicate that the item was retrieved and all work on it is complete.
212 When the count of unfinished tasks drops to zero, join() unblocks.
213 """
214 if self._unfinished_tasks > 0:
215 await self._finished.wait()
216
217
218class PriorityQueue(Queue):

Callers 15

_readerMethod · 0.95
_readerMethod · 0.95
__init__Method · 0.45
dirs_select_eventMethod · 0.45
filter_commandMethod · 0.45
get_filterMethod · 0.45
set_filterMethod · 0.45
set_selectionMethod · 0.45
_joinFunction · 0.45
__repr__Method · 0.45
_unbindMethod · 0.45
_optionsMethod · 0.45

Calls 1

waitMethod · 0.45

Tested by 15

_strMethod · 0.36
checkEnumParamMethod · 0.36
warnsMethod · 0.36
assert_runs_afterMethod · 0.36
test_import_moduleMethod · 0.36
test_import_fromMethod · 0.36
pMethod · 0.36
init_test_fileMethod · 0.36