From 36a6dd4d794509f819be7ffbc37fa31cc3b3435f 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 afa7ea10e6f9bd4..6f5dd13545f6878 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