File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -257,8 +257,8 @@ Creating Tasks
257
257
.. note ::
258
258
259
259
: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.
262
262
263
263
.. important ::
264
264
@@ -465,10 +465,7 @@ Running Tasks Concurrently
465
465
provides stronger safety guarantees than *gather * for scheduling a nesting of subtasks.
466
466
That is, if a task (or a subtask, a task scheduled by a task)
467
467
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).
472
469
473
470
.. _asyncio_example_gather :
474
471
You can’t perform that action at this time.
0 commit comments