Skip to content

Commit eaa08a0

Browse files
authored
[SE-0304] Delete a misrepresentation about cancellation in withThrowingTaskGroup
In fact, when group await any not yet complete tasks: If any of those tasks throws, the remaining tasks will not be cancelled automatically.
1 parent 26eb88d commit eaa08a0

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

proposals/0304-structured-concurrency.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,6 @@ func withTaskGroup<ChildTaskResult: Sendable, GroupResult>(
10511051
/// This is achieved in the following way:
10521052
/// - if the body returns normally:
10531053
/// - the group will await any not yet complete tasks,
1054-
/// - if any of those tasks throws, the remaining tasks will be cancelled,
10551054
/// - once the `withTaskGroup` returns the group is guaranteed to be empty.
10561055
/// - if the body throws:
10571056
/// - all tasks remaining in the group will be automatically cancelled.

0 commit comments

Comments
 (0)