]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-124433: fix docs for `asyncio.Queue.task_done` (GH-128669) (#128672)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 9 Jan 2025 12:28:15 +0000 (13:28 +0100)
committerGitHub <noreply@github.com>
Thu, 9 Jan 2025 12:28:15 +0000 (12:28 +0000)
gh-124433: fix docs for `asyncio.Queue.task_done` (GH-128669)
(cherry picked from commit 4322a318ea98ceeb95d88b7ae6b5cfa3572d2069)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Doc/library/asyncio-queue.rst

index 63afc411d9622a4d1dc371687fe5d7a20b90951e..68f386b6a00cde3aa6b152051cdf87b96e6e6413 100644 (file)
@@ -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`