From 885952e06cdd65ab9221a883a4f864d0cb2b570d Mon Sep 17 00:00:00 2001 From: Sebastien Stormacq Date: Mon, 15 Apr 2024 11:19:19 +0200 Subject: [PATCH] avoid warning when enabling strict concurrency check --- Sources/AWSLambdaRuntimeCore/LambdaHandler.swift | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift b/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift index 3a7e3c27..f250ec35 100644 --- a/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift +++ b/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift @@ -27,9 +27,9 @@ public protocol SimpleLambdaHandler { /// The lambda function's input. In most cases this should be `Codable`. If your event originates from an /// AWS service, have a look at [AWSLambdaEvents](https://github.com/swift-server/swift-aws-lambda-events), /// which provides a number of commonly used AWS Event implementations. - associatedtype Event + associatedtype Event: Sendable /// The lambda function's output. Can be `Void`. - associatedtype Output + associatedtype Output: Sendable init() @@ -143,9 +143,9 @@ public protocol LambdaHandler { /// The lambda function's input. In most cases this should be `Codable`. If your event originates from an /// AWS service, have a look at [AWSLambdaEvents](https://github.com/swift-server/swift-aws-lambda-events), /// which provides a number of commonly used AWS Event implementations. - associatedtype Event + associatedtype Event: Sendable /// The lambda function's output. Can be `Void`. - associatedtype Output + associatedtype Output: Sendable /// The Lambda initialization method. /// Use this method to initialize resources that will be used in every request. @@ -287,9 +287,9 @@ public protocol EventLoopLambdaHandler { /// The lambda functions input. In most cases this should be `Codable`. If your event originates from an /// AWS service, have a look at [AWSLambdaEvents](https://github.com/swift-server/swift-aws-lambda-events), /// which provides a number of commonly used AWS Event implementations. - associatedtype Event + associatedtype Event: Sendable /// The lambda functions output. Can be `Void`. - associatedtype Output + associatedtype Output: Sendable /// Create a Lambda handler for the runtime. ///