https://github.com/python/cpython/commit/2f7374e63d6c3486eb2a2425b157c902217fbe24
commit: 2f7374e63d6c3486eb2a2425b157c902217fbe24
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: kumaraditya303 <[email protected]>
date: 2026-09-11T18:46:07+05:30
summary:

[3.13] gh-156662: Note that TaskGroup.create_task() raises RuntimeError 
(GH-156663) (#157315)

gh-156662: Note that TaskGroup.create_task() raises RuntimeError (GH-156663)
(cherry picked from commit 26d9b25580159abeb69b80ae6fbf511385eb6e99)

Co-authored-by: Timofei Ivankov <[email protected]>

files:
M Doc/library/asyncio-task.rst

diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst
index afa7ea10e6f9bd..6f5dd13545f687 100644
--- a/Doc/library/asyncio-task.rst
+++ b/Doc/library/asyncio-task.rst
@@ -347,7 +347,7 @@ and reliable way to wait for all tasks in the group to 
finish.
       The signature matches that of :func:`asyncio.create_task`.
       If the task group is inactive (e.g. not yet entered,
       already finished, or in the process of shutting down),
-      we will close the given ``coro``.
+      we will close the given ``coro`` and raise :exc:`RuntimeError`.
 
       .. versionchanged:: 3.13
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to