https://github.com/python/cpython/commit/26d9b25580159abeb69b80ae6fbf511385eb6e99
commit: 26d9b25580159abeb69b80ae6fbf511385eb6e99
branch: main
author: Timofei Ivankov <[email protected]>
committer: kumaraditya303 <[email protected]>
date: 2026-08-30T20:50:54+05:30
summary:
gh-156662: Note that TaskGroup.create_task() raises RuntimeError (#156663)
files:
M Doc/library/asyncio-task.rst
diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst
index 689a6a6d2e0bd9..1a13ad387f89b2 100644
--- a/Doc/library/asyncio-task.rst
+++ b/Doc/library/asyncio-task.rst
@@ -356,7 +356,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]