Skip to content

Commit 207a8eb

Browse files
Syntax
1 parent 1b2172b commit 207a8eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/asyncio-task.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,8 +462,8 @@ Running Tasks Concurrently
462462
.. note::
463463
A new alternative to create and run tasks concurrently and
464464
wait for their completion is :class:`asyncio.TaskGroup`. *TaskGroup*
465-
provides stronger safety guarantees than *gather* for scheduling a nesting of subtasks.
466-
That is, if a task (or a subtask, a task scheduled by a task)
465+
provides stronger safety guarantees than *gather* for scheduling a nesting of subtasks:
466+
if a task (or a subtask, a task scheduled by a task)
467467
raises an exception, *TaskGroup* will, while *gather* will not,
468468
cancel the remaining scheduled tasks).
469469

0 commit comments

Comments
 (0)