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

Method worker

Lib/test/test_asyncio/test_queues.py:476–482  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

474 running = True
475
476 async def worker():
477 nonlocal accumulator
478
479 while running:
480 item = await q.get()
481 accumulator += item
482 q.task_done()
483
484 async with asyncio.TaskGroup() as tg:
485 tasks = [tg.create_task(worker())

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
task_doneMethod · 0.45

Tested by

no test coverage detected