Skip to content

Commit 72331ac

Browse files
authored
Merge pull request #21 from knovichikhin/main
Remove conflicting copy of NIO method
2 parents b858670 + 786c23e commit 72331ac

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

Sources/AWSHttp/AWSQueryClientProtocol+asyncSupport.swift

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,6 @@ import SmokeHTTPClient
2121
import AWSCore
2222
import NIO
2323

24-
// Copy of extension from SwiftNIO; can be removed when the version in SwiftNIO removes its @available attribute
25-
internal extension EventLoopFuture {
26-
/// Get the value/error from an `EventLoopFuture` in an `async` context.
27-
///
28-
/// This function can be used to bridge an `EventLoopFuture` into the `async` world. Ie. if you're in an `async`
29-
/// function and want to get the result of this future.
30-
@inlinable
31-
func get() async throws -> Value {
32-
return try await withCheckedThrowingContinuation { cont in
33-
self.whenComplete { result in
34-
switch result {
35-
case .success(let value):
36-
cont.resume(returning: value)
37-
case .failure(let error):
38-
cont.resume(throwing: error)
39-
}
40-
}
41-
}
42-
}
43-
}
44-
4524
public extension AWSQueryClientProtocol {
4625
func executeWithoutOutput<InvocationReportingType: HTTPClientInvocationReporting,
4726
WrappedInputType: HTTPRequestInputProtocol, ErrorType: ConvertableError>(

0 commit comments

Comments
 (0)