Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
get
Method · 0.45
task_done
Method · 0.45
Tested by
no test coverage detected