[Concurrency] SwiftStdlib 5.5 ⟹ SwiftStdlib 5.1 (usages)

The concurrency runtime now deploys back to macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, which corresponds to the 5.1 release of the stdlib.

Adjust macro usages accordingly.
This commit is contained in:
Karoy Lorentey
2021-10-28 14:25:35 -07:00
parent fb090fde5e
commit 47956908b7
157 changed files with 727 additions and 729 deletions

View File

@@ -11,7 +11,7 @@ func boom() async throws -> Int {
throw Boom()
}
@available(SwiftStdlib 5.5, *)
@available(SwiftStdlib 5.1, *)
func test_taskGroup_next() async {
let sum = await withThrowingTaskGroup(of: Int.self, returning: Int.self) { group in
for n in 1...10 {
@@ -44,7 +44,7 @@ func test_taskGroup_next() async {
print("result with group.next(): \(sum)")
}
@available(SwiftStdlib 5.5, *)
@available(SwiftStdlib 5.1, *)
func test_taskGroup_for_in() async {
let sum = await withThrowingTaskGroup(of: Int.self, returning: Int.self) { group in
for n in 1...10 {
@@ -75,7 +75,7 @@ func test_taskGroup_for_in() async {
print("result with for-in: \(sum)")
}
@available(SwiftStdlib 5.5, *)
@available(SwiftStdlib 5.1, *)
func test_taskGroup_asyncIterator() async {
let sum = await withThrowingTaskGroup(of: Int.self, returning: Int.self) { group in
for n in 1...10 {
@@ -113,7 +113,7 @@ func test_taskGroup_asyncIterator() async {
print("result with async iterator: \(sum)")
}
@available(SwiftStdlib 5.5, *)
@available(SwiftStdlib 5.1, *)
func test_taskGroup_contains() async {
let sum = await withTaskGroup(of: Int.self, returning: Int.self) { group in
for n in 1...4 {
@@ -145,7 +145,7 @@ func test_taskGroup_contains() async {
print("result with async iterator: \(sum)")
}
@available(SwiftStdlib 5.5, *)
@available(SwiftStdlib 5.1, *)
@main struct Main {
static func main() async {
await test_taskGroup_next()