Skip to content

Commit 4b32641

Browse files
Trimmed down what was superfluous.
1 parent 65ea453 commit 4b32641

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

Doc/library/asyncio-task.rst

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,8 @@ Creating Tasks
249249
.. note::
250250

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

255255
.. important::
256256

@@ -453,10 +453,7 @@ Running Tasks Concurrently
453453
provides stronger safety guarantees than *gather* for scheduling a nesting of subtasks.
454454
That is, if a task (or a subtask, a task scheduled by a task)
455455
raises an exception, *TaskGroup* will, while *gather* will not,
456-
cancel the remaining scheduled tasks). However the terser *gather* might be
457-
preferred for *Iterable* of tasks which individually handle their own exceptions, or more
458-
generally, when having some tasks survive the cancellation
459-
of others is an acceptable outcome.
456+
cancel the remaining scheduled tasks).
460457

461458
.. _asyncio_example_gather:
462459

0 commit comments

Comments
 (0)