We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5a77fc commit 5a1c268Copy full SHA for 5a1c268
test/Concurrency/async_sequence_macosx.swift
@@ -18,11 +18,18 @@ func f<S: AsyncSequence>(s: S) async throws {
18
// Make sure we don't complain about crossing a concurrency boundary here.
19
@MainActor
20
class Store<Action: Sendable> {
21
- private func intercept(_ action: Action) async {
+ private func intercept(_ action: Action) async throws {
22
await withTaskGroup(of: Optional<Action>.self) { group in
23
for await case let nextAction? in group {
24
_ = nextAction
25
}
26
27
+
28
+ try await withThrowingTaskGroup(of: Optional<Action>.self) { group in
29
+ for try await case let nextAction? in group {
30
+ _ = nextAction
31
+ }
32
33
34
35
0 commit comments