File tree 1 file changed +2
-2
lines changed
Sources/AWSLambdaRuntimeCore
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ public protocol AsyncLambdaHandler: EventLoopLambdaHandler {
115
115
extension AsyncLambdaHandler {
116
116
public func handle( context: Lambda . Context , event: In ) -> EventLoopFuture < Out > {
117
117
let promise = context. eventLoop. makePromise ( of: Out . self)
118
- promise. completeWithAsync {
118
+ promise. completeWithTask {
119
119
try await self . handle ( event: event, context: context)
120
120
}
121
121
return promise. futureResult
@@ -127,7 +127,7 @@ extension AsyncLambdaHandler {
127
127
public static func main( ) {
128
128
Lambda . run { context -> EventLoopFuture < ByteBufferLambdaHandler > in
129
129
let promise = context. eventLoop. makePromise ( of: ByteBufferLambdaHandler . self)
130
- promise. completeWithAsync {
130
+ promise. completeWithTask {
131
131
try await Self ( context: context)
132
132
}
133
133
return promise. futureResult
You can’t perform that action at this time.
0 commit comments