Skip to content

Commit 3d6fc7d

Browse files
authored
Merge pull request #63017 from ktoso/pick-wip-waitAll-race
[5.8][Concurrency] Fix too optimistic TaskGroup bail-out-when-empty
2 parents cb6681e + 7ecbba4 commit 3d6fc7d

File tree

6 files changed

+678
-532
lines changed

6 files changed

+678
-532
lines changed

stdlib/public/Concurrency/DiscardingTaskGroup.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ public func withDiscardingTaskGroup<GroupResult>(
8686
let result = await body(&group)
8787

8888
try! await group.awaitAllRemainingTasks() // try!-safe, cannot throw since this is a non throwing group
89+
8990
return result
9091
#else
9192
fatalError("Swift compiler is incompatible with this SDK version")

0 commit comments

Comments
 (0)