From 19db40aed46bba3b2d63c3ac9e0be5c97c18ecb8 Mon Sep 17 00:00:00 2001 From: Timofei Ivankov <128279579+deadlovelll@users.noreply.github.com> Date: Sun, 30 Aug 2026 18:20:54 +0300 Subject: [PATCH] gh-156662: Note that TaskGroup.create_task() raises RuntimeError (GH-156663) (cherry picked from commit 26d9b25580159abeb69b80ae6fbf511385eb6e99) Co-authored-by: Timofei Ivankov <128279579+deadlovelll@users.noreply.github.com> --- Doc/library/asyncio-task.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst index 7f4605ac36221a9..17d02b7a8cf8bf2 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