Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Sources/AWSLambdaRuntimeCore/LambdaHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
///
Expand Down