Skip to content

Commit c2f3632

Browse files
authored
Remove incorrect discussion of thrown errors in TaskGroup.next() (#2506)
This text only applies to the throwing task group.
1 parent 0692200 commit c2f3632

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

proposals/0304-structured-concurrency.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,13 +1196,6 @@ extension TaskGroup: AsyncSequence {
11961196
///
11971197
/// print(await group.next())
11981198
/// /// Prints "1" OR "2"
1199-
///
1200-
/// ### Errors
1201-
/// If an operation added to the group throws, that error will be rethrown
1202-
/// by the next() call corresponding to that operation's completion.
1203-
///
1204-
/// It is possible to directly rethrow such error out of a `withTaskGroup` body
1205-
/// function's body, causing all remaining tasks to be implicitly cancelled.
12061199
mutating func next() async -> ChildTaskResult? { ... }
12071200

12081201
/// Wait for all of the child tasks to complete.

0 commit comments

Comments
 (0)