Skip to content

Commit

Permalink
Add compiler(>=5.5.2) check for concurrency code (#489)
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler authored Jan 12, 2022
1 parent 0d3c9dc commit 515ba59
Show file tree
Hide file tree
Showing 14 changed files with 28 additions and 28 deletions.
4 changes: 2 additions & 2 deletions Sources/SotoCore/AWSShapes/Payload+async.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//

#if compiler(>=5.5) && canImport(_Concurrency)
#if compiler(>=5.5.2) && canImport(_Concurrency)

import NIOCore

Expand Down Expand Up @@ -41,4 +41,4 @@ extension AWSPayload {
}
}

#endif // compiler(>=5.5) && canImport(_Concurrency)
#endif // compiler(>=5.5.2) && canImport(_Concurrency)
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//

#if compiler(>=5.5) && canImport(_Concurrency)
#if compiler(>=5.5.2) && canImport(_Concurrency)

import Logging
import NIOCore
Expand Down Expand Up @@ -264,4 +264,4 @@ extension AWSClient {
}
}

#endif // compiler(>=5.5) && canImport(_Concurrency)
#endif // compiler(>=5.5.2) && canImport(_Concurrency)
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//

#if compiler(>=5.5) && canImport(_Concurrency)
#if compiler(>=5.5.2) && canImport(_Concurrency)

import Logging
import NIOCore
Expand Down Expand Up @@ -89,4 +89,4 @@ extension AWSClient {
}
}

#endif // compiler(>=5.5) && canImport(_Concurrency)
#endif // compiler(>=5.5.2) && canImport(_Concurrency)
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//

#if compiler(>=5.5) && canImport(_Concurrency)
#if compiler(>=5.5.2) && canImport(_Concurrency)

import Logging
import NIOCore
Expand Down Expand Up @@ -40,4 +40,4 @@ extension AWSClient {
}
}

#endif // compiler(>=5.5) && canImport(_Concurrency)
#endif // compiler(>=5.5.2) && canImport(_Concurrency)
4 changes: 2 additions & 2 deletions Sources/SotoCore/AsyncAwaitSupport/AWSClient+async.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//

#if compiler(>=5.5) && canImport(_Concurrency)
#if compiler(>=5.5.2) && canImport(_Concurrency)

import Dispatch
import Foundation
Expand Down Expand Up @@ -370,4 +370,4 @@ extension AWSClient {
}
}

#endif // compiler(>=5.5) && canImport(_Concurrency)
#endif // compiler(>=5.5.2) && canImport(_Concurrency)
4 changes: 2 additions & 2 deletions Sources/SotoCore/AsyncAwaitSupport/AWSService+async.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//

#if compiler(>=5.5) && canImport(_Concurrency)
#if compiler(>=5.5.2) && canImport(_Concurrency)

import struct Foundation.URL
import NIOCore
Expand Down Expand Up @@ -59,4 +59,4 @@ extension AWSService {
}
}

#endif // compiler(>=5.5) && canImport(_Concurrency)
#endif // compiler(>=5.5.2) && canImport(_Concurrency)
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//

#if compiler(>=5.5) && canImport(_Concurrency)
#if compiler(>=5.5.2) && canImport(_Concurrency)

import Logging
import NIOCore
Expand All @@ -37,4 +37,4 @@ extension AsyncCredentialProvider {
}
}

#endif // compiler(>=5.5) && canImport(_Concurrency)
#endif // compiler(>=5.5.2) && canImport(_Concurrency)
4 changes: 2 additions & 2 deletions Sources/SotoTestUtils/TestUtils+async.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//

#if compiler(>=5.5) && canImport(_Concurrency)
#if compiler(>=5.5.2) && canImport(_Concurrency)

import Foundation
import Logging
Expand All @@ -34,4 +34,4 @@ public func XCTRunAsyncAndBlock(_ closure: @escaping () async throws -> Void) {
dg.wait()
}

#endif // compiler(>=5.5) && canImport(_Concurrency)
#endif // compiler(>=5.5.2) && canImport(_Concurrency)
4 changes: 2 additions & 2 deletions Tests/SotoCoreTests/AWSClientTests+async.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//

#if compiler(>=5.5) && canImport(_Concurrency)
#if compiler(>=5.5.2) && canImport(_Concurrency)

import AsyncHTTPClient
import Dispatch
Expand Down Expand Up @@ -184,4 +184,4 @@ class AWSClientAsyncTests: XCTestCase {
}
}

#endif // compiler(>=5.5) && canImport(_Concurrency)
#endif // compiler(>=5.5.2) && canImport(_Concurrency)
4 changes: 2 additions & 2 deletions Tests/SotoCoreTests/AWSServiceTests+async.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//

#if compiler(>=5.5) && canImport(_Concurrency)
#if compiler(>=5.5.2) && canImport(_Concurrency)

@testable import SotoCore
import SotoTestUtils
Expand Down Expand Up @@ -77,4 +77,4 @@ final class AWSServiceAsyncTests: XCTestCase {
}
}

#endif // compiler(>=5.5) && canImport(_Concurrency)
#endif // compiler(>=5.5.2) && canImport(_Concurrency)
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//

#if compiler(>=5.5) && canImport(_Concurrency)
#if compiler(>=5.5.2) && canImport(_Concurrency)

import NIOCore
import SotoCore
Expand Down Expand Up @@ -43,4 +43,4 @@ class AsyncCredentialProviderTests: XCTestCase {
}
}

#endif // compiler(>=5.5) && canImport(_Concurrency)
#endif // compiler(>=5.5.2) && canImport(_Concurrency)
4 changes: 2 additions & 2 deletions Tests/SotoCoreTests/EndpointDiscoveryTests+async.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//

#if compiler(>=5.5) && canImport(_Concurrency)
#if compiler(>=5.5.2) && canImport(_Concurrency)

import NIOCore
import SotoCore
Expand Down Expand Up @@ -218,4 +218,4 @@ class EndpointDiscoveryAsyncTests: XCTestCase {
}
}

#endif // compiler(>=5.5) && canImport(_Concurrency)
#endif // compiler(>=5.5.2) && canImport(_Concurrency)
4 changes: 2 additions & 2 deletions Tests/SotoCoreTests/PaginateTests+async.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//

#if compiler(>=5.5) && canImport(_Concurrency)
#if compiler(>=5.5.2) && canImport(_Concurrency)

import AsyncHTTPClient
import NIOCore
Expand Down Expand Up @@ -237,4 +237,4 @@ final class PaginateAsyncTests: XCTestCase {
}
}

#endif // compiler(>=5.5) && canImport(_Concurrency)
#endif // compiler(>=5.5.2) && canImport(_Concurrency)
4 changes: 2 additions & 2 deletions Tests/SotoCoreTests/WaiterTests+async.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//

#if compiler(>=5.5) && canImport(_Concurrency)
#if compiler(>=5.5.2) && canImport(_Concurrency)

@testable import SotoCore
import SotoTestUtils
Expand Down Expand Up @@ -79,4 +79,4 @@ final class WaiterAsyncTests: XCTestCase {
}
}

#endif // compiler(>=5.5) && canImport(_Concurrency)
#endif // compiler(>=5.5.2) && canImport(_Concurrency)

0 comments on commit 515ba59

Please sign in to comment.