]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-124433: fix docs for `asyncio.Queue.task_done` (#128669)
authorKumar Aditya <kumaraditya@python.org>
Thu, 9 Jan 2025 12:20:12 +0000 (17:50 +0530)
committerGitHub <noreply@github.com>
Thu, 9 Jan 2025 12:20:12 +0000 (17:50 +0530)
Doc/library/asyncio-queue.rst

index 61991bf2f4ed1d5ef8ff5f0dbc63e65c49f09cfa..066edd424d150e6657cdc5f76bb80ec3558fc75e 100644 (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`