Skip to content

Commit 989db80

Browse files
committed
[Concurrency] fix a few missing @available annotations
1 parent 0857d0f commit 989db80

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

test/Concurrency/Runtime/async_taskgroup_asynciterator_semantics.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ func boom() async throws -> Int {
1010
throw Boom()
1111
}
1212

13+
@available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
1314
func test_taskGroup_next() async {
1415
let sum = await withThrowingTaskGroup(of: Int.self, returning: Int.self) { group in
1516
for n in 1...10 {
@@ -40,6 +41,7 @@ func test_taskGroup_next() async {
4041
print("result with group.next(): \(sum)")
4142
}
4243

44+
@available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
4345
func test_taskGroup_for_in() async {
4446
let sum = await withThrowingTaskGroup(of: Int.self, returning: Int.self) { group in
4547
for n in 1...10 {
@@ -70,6 +72,7 @@ func test_taskGroup_for_in() async {
7072
print("result with for-in: \(sum)")
7173
}
7274

75+
@available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
7376
func test_taskGroup_asyncIterator() async {
7477
let sum = await withThrowingTaskGroup(of: Int.self, returning: Int.self) { group in
7578
for n in 1...10 {
@@ -107,6 +110,7 @@ func test_taskGroup_asyncIterator() async {
107110
print("result with async iterator: \(sum)")
108111
}
109112

113+
@available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
110114
@main struct Main {
111115
static func main() async {
112116
await test_taskGroup_next()

test/Concurrency/Runtime/async_taskgroup_is_asyncsequence.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ func test_taskGroup_is_asyncSequence() async {
3333
print("result: \(sum)")
3434
}
3535

36+
@available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
3637
func test_throwingTaskGroup_is_asyncSequence() async throws {
3738
print(#function)
3839

test/Concurrency/async_task_groups.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ struct SendableTuple2<A: Sendable, B: Sendable>: Sendable {
167167
}
168168
}
169169

170+
@available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
170171
extension Collection where Self: Sendable, Element: Sendable, Self.Index: Sendable {
171172

172173
/// Just another example of how one might use task groups.

0 commit comments

Comments
 (0)