File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
stdlib/public/Concurrency Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ extension Task {
64
64
resultType: TaskResult . Type ,
65
65
returning returnType: BodyResult . Type = BodyResult . self,
66
66
body: ( inout Task . Group < TaskResult > ) async throws -> BodyResult
67
- ) async throws -> BodyResult {
67
+ ) async rethrows -> BodyResult {
68
68
let task = Builtin . getCurrentAsyncTask ( )
69
69
let _group = _taskGroupCreate ( task: task)
70
70
var group : Task . Group < TaskResult > ! = Task . Group ( task: task, group: _group)
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ func boom() async throws -> Int {
14
14
}
15
15
16
16
func test_taskGroup_throws( ) async {
17
- let got : Int = try ! await Task . withGroup ( resultType: Int . self) { group in
17
+ let got : Int = await Task . withGroup ( resultType: Int . self) { group in
18
18
await group. add { try await boom ( ) }
19
19
20
20
do {
You can’t perform that action at this time.
0 commit comments