gh-124433: fix docs for asyncio.Queue.task_done (#128669)

This commit is contained in:
Kumar Aditya 2025-01-09 17:50:12 +05:30 committed by GitHub
parent b2adf55674
commit 4322a318ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -115,11 +115,11 @@ Queue
.. method:: task_done()
Indicate that a formerly enqueued task is complete.
Indicate that a formerly enqueued work item is complete.
Used by queue consumers. For each :meth:`~Queue.get` used to
fetch a task, a subsequent call to :meth:`task_done` tells the
queue that the processing on the task is complete.
fetch a work item, a subsequent call to :meth:`task_done` tells the
queue that the processing on the work item is complete.
If a :meth:`join` is currently blocking, it will resume when all
items have been processed (meaning that a :meth:`task_done`