Skip to content

Commit

Permalink
Merge pull request #87 from amzn/update_apple_platforms_async_await_a…
Browse files Browse the repository at this point in the history
…vailability

Update async/await api availablity on Apple platforms inline with Swi…
  • Loading branch information
tachyonics authored Jun 23, 2021
2 parents 8411ef4 + 3525245 commit 0f0ac49
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"repositoryURL": "https://github.com/apple/swift-nio.git",
"state": {
"branch": null,
"revision": "d161bf658780b209c185994528e7e24376cf7283",
"version": "2.29.0"
"revision": "d79e33308b0ac83326b0ead0ea6446e604b8162d",
"version": "2.30.0"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ let package = Package(
targets: ["ShapeCoding"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-nio.git", from: "2.28.0"),
.package(url: "https://github.com/apple/swift-nio.git", from: "2.30.0"),
.package(url: "https://github.com/apple/swift-nio-ssl.git", from: "2.0.0"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"),
.package(url: "https://github.com/apple/swift-metrics.git", "1.0.0"..<"3.0.0"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// _SmokeHTTPClientConcurrency
//

#if compiler(>=5.5) && $AsyncAwait
#if compiler(>=5.5)

import Foundation
import NIO
Expand All @@ -38,7 +38,7 @@ public extension HTTPOperationsClient {
- Returns: the response body.
- Throws: If an error occurred during the request.
*/
@available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
@available(macOS 12, iOS 15, tvOS 15, watchOS 8, *)
func executeRetriableWithOutput<InputType, OutputType,
InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>(
endpointOverride: URL? = nil,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// _SmokeHTTPClientConcurrency
//

#if compiler(>=5.5) && $AsyncAwait
#if compiler(>=5.5)

import Foundation
import NIO
Expand All @@ -37,7 +37,7 @@ public extension HTTPOperationsClient {
- retryOnError: function that should return if the provided error is retryable.
- Throws: If an error occurred during the request.
*/
@available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
@available(macOS 12, iOS 15, tvOS 15, watchOS 8, *)
func executeRetriableWithoutOutput<InputType,
InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>(
endpointOverride: URL? = nil,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// _SmokeHTTPClientConcurrency
//

#if compiler(>=5.5) && $AsyncAwait
#if compiler(>=5.5)

import Foundation
import NIO
Expand All @@ -37,7 +37,7 @@ public extension HTTPOperationsClient {
- Returns: the response body.
- Throws: If an error occurred during the request.
*/
@available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
@available(macOS 12, iOS 15, tvOS 15, watchOS 8, *)
func executeWithOutput<InputType, OutputType,
InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>(
endpointOverride: URL? = nil,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// _SmokeHTTPClientConcurrency
//

#if compiler(>=5.5) && $AsyncAwait
#if compiler(>=5.5)

import Foundation
import NIO
Expand All @@ -37,7 +37,7 @@ public extension HTTPOperationsClient {
- invocationContext: context to use for this invocation.
- Throws: If an error occurred during the request.
*/
@available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
@available(macOS 12, iOS 15, tvOS 15, watchOS 8, *)
func executeWithoutOutput<InputType,
InvocationReportingType: HTTPClientInvocationReporting, HandlerDelegateType: HTTPClientInvocationDelegate>(
endpointOverride: URL? = nil,
Expand Down

0 comments on commit 0f0ac49

Please sign in to comment.