Skip to content

Commit 1b2172b

Browse files
Trimmed down what was superfluous.
1 parent a882de7 commit 1b2172b

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Doc/library/asyncio-task.rst

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,8 @@ Creating Tasks
257257
.. note::
258258

259259
:meth:`asyncio.TaskGroup.create_task` is a new alternative
260-
based on `structural concurrency principles <https://en.wikipedia.org/wiki/Structured_concurrency>`_
261-
that allows for waiting for a group of related tasks with strong safety guarantees.
260+
leveraging structural concurrency; it allows for waiting
261+
for a group of related tasks with strong safety guarantees.
262262

263263
.. important::
264264

@@ -465,10 +465,7 @@ Running Tasks Concurrently
465465
provides stronger safety guarantees than *gather* for scheduling a nesting of subtasks.
466466
That is, if a task (or a subtask, a task scheduled by a task)
467467
raises an exception, *TaskGroup* will, while *gather* will not,
468-
cancel the remaining scheduled tasks). However the terser *gather* might be
469-
preferred for *Iterable* of tasks which individually handle their own exceptions, or more
470-
generally, when having some tasks survive the cancellation
471-
of others is an acceptable outcome.
468+
cancel the remaining scheduled tasks).
472469

473470
.. _asyncio_example_gather:
474471

0 commit comments

Comments
 (0)