diff options
author | Kumar Aditya <kumaraditya@python.org> | 2025-01-09 12:20:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-09 12:20:12 (GMT) |
commit | 4322a318ea98ceeb95d88b7ae6b5cfa3572d2069 (patch) | |
tree | 4c37ccc34076bccb259bf7ae390e545a8c665e23 /Doc/library | |
parent | b2adf556747d080f04b53ba4063b627c2dbe41d1 (diff) | |
download | cpython-4322a318ea98ceeb95d88b7ae6b5cfa3572d2069.zip cpython-4322a318ea98ceeb95d88b7ae6b5cfa3572d2069.tar.gz cpython-4322a318ea98ceeb95d88b7ae6b5cfa3572d2069.tar.bz2 |
gh-124433: fix docs for `asyncio.Queue.task_done` (#128669)
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/asyncio-queue.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/asyncio-queue.rst b/Doc/library/asyncio-queue.rst index 61991bf..066edd4 100644 --- a/Doc/library/asyncio-queue.rst +++ b/Doc/library/asyncio-queue.rst @@ -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` |