MCPcopy
hub / github.com/microsoft/autogen / join

Method join

python/packages/autogen-core/src/autogen_core/_queue.py:227–236  ·  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

225 self._finished.set()
226
227 async def join(self) -> None:
228 """Block until all items in the queue have been gotten and processed.
229
230 The count of unfinished tasks goes up whenever an item is added to the
231 queue. The count goes down whenever a consumer calls task_done() to
232 indicate that the item was retrieved and all work on it is complete.
233 When the count of unfinished tasks drops to zero, join() unblocks.
234 """
235 if self._unfinished_tasks > 0:
236 await self._finished.wait()
237
238 def shutdown(self, immediate: bool = False) -> None:
239 """Shut-down the queue, making queue gets and puts raise QueueShutDown.

Callers 15

check_code_blocksFunction · 0.80
runMethod · 0.80
from_server_paramsMethod · 0.80
get_revision_diffsMethod · 0.80
get_diffMethod · 0.80
apply_patchMethod · 0.80
update_contextMethod · 0.80
update_contextMethod · 0.80
update_contextMethod · 0.80

Calls

no outgoing calls

Tested by 15

test_mcp_server_gitFunction · 0.64
test_global_search_toolFunction · 0.64
test_local_search_toolFunction · 0.64
test_execute_codeFunction · 0.64
test_execute_codeFunction · 0.64
test_upload_filesFunction · 0.64
test_download_filesFunction · 0.64
create_venv_with_uvFunction · 0.64
test_execute_codeFunction · 0.64