mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
[3.12] gh-124433: fix docs for asyncio.Queue.task_done (GH-128669) (#128672)
gh-124433: fix docs for `asyncio.Queue.task_done` (GH-128669)
(cherry picked from commit 4322a318ea)
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
This commit is contained in:
parent
182234f5ea
commit
8bfc68f0f5
1 changed files with 3 additions and 3 deletions
|
|
@ -94,11 +94,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`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue