Skip to content

Commit 2f7374e

Browse files
[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 26d9b25) Co-authored-by: Timofei Ivankov <128279579+deadlovelll@users.noreply.github.com>
1 parent 9f9dd10 commit 2f7374e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/asyncio-task.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ and reliable way to wait for all tasks in the group to finish.
347347
The signature matches that of :func:`asyncio.create_task`.
348348
If the task group is inactive (e.g. not yet entered,
349349
already finished, or in the process of shutting down),
350-
we will close the given ``coro``.
350+
we will close the given ``coro`` and raise :exc:`RuntimeError`.
351351

352352
.. versionchanged:: 3.13
353353

0 commit comments

Comments
 (0)