Skip to content

Commit ff28674

Browse files
Syntax
1 parent 4b32641 commit ff28674

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/library/asyncio-task.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,8 +450,8 @@ Running Tasks Concurrently
450450
.. note::
451451
A new alternative to create and run tasks concurrently and
452452
wait for their completion is :class:`asyncio.TaskGroup`. *TaskGroup*
453-
provides stronger safety guarantees than *gather* for scheduling a nesting of subtasks.
454-
That is, if a task (or a subtask, a task scheduled by a task)
453+
provides stronger safety guarantees than *gather* for scheduling a nesting of subtasks:
454+
if a task (or a subtask, a task scheduled by a task)
455455
raises an exception, *TaskGroup* will, while *gather* will not,
456456
cancel the remaining scheduled tasks).
457457

0 commit comments

Comments
 (0)