]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-88342: clarify that `asyncio.as_completed` accepts generators yielding tasks ...
authorKumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Wed, 19 Apr 2023 10:21:53 +0000 (15:51 +0530)
committerGitHub <noreply@github.com>
Wed, 19 Apr 2023 10:21:53 +0000 (15:51 +0530)
Doc/library/asyncio-task.rst
Doc/whatsnew/3.12.rst

index 41d09e1e79705caaea2e565716106c50bae249ca..b81d89acf7fd8808ebcc8e5a59e9fb4a30fd9a35 100644 (file)
@@ -829,6 +829,9 @@ Waiting Primitives
       Deprecation warning is emitted if not all awaitable objects in the *aws*
       iterable are Future-like objects and there is no running event loop.
 
+   .. versionchanged:: 3.12
+      Added support for generators yielding tasks.
+
 
 Running in Threads
 ==================
index bd95bfeea80c71ada6af403fa245b94bf8f25f97..b3bb065741d037481ed45463e91ab08e03157aed 100644 (file)
@@ -250,7 +250,8 @@ asyncio
   :mod:`asyncio` does not support legacy generator-based coroutines.
   (Contributed by Kumar Aditya in :gh:`102748`.)
 
-* :func:`asyncio.wait` now accepts generators yielding tasks.
+* :func:`asyncio.wait` and :func:`asyncio.as_completed` now accepts generators
+  yielding tasks.
   (Contributed by Kumar Aditya in :gh:`78530`.)
 
 csv