File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import NIOCore
20
20
/// Background work can also be executed after returning the response. After closing the response stream by calling
21
21
/// ``LambdaResponseStreamWriter/finish()`` or ``LambdaResponseStreamWriter/writeAndFinish(_:)``,
22
22
/// the ``handle(_:responseWriter:context:)`` function is free to execute any background work.
23
- public protocol StreamingLambdaHandler {
23
+ public protocol StreamingLambdaHandler : _Lambda_SendableMetatype {
24
24
/// The handler function -- implement the business logic of the Lambda function here.
25
25
/// - Parameters:
26
26
/// - event: The invocation's input data.
Original file line number Diff line number Diff line change
1
+ //===----------------------------------------------------------------------===//
2
+ //
3
+ // This source file is part of the SwiftAWSLambdaRuntime open source project
4
+ //
5
+ // Copyright (c) 2025 Apple Inc. and the SwiftAWSLambdaRuntime project authors
6
+ // Licensed under Apache License v2.0
7
+ //
8
+ // See LICENSE.txt for license information
9
+ // See CONTRIBUTORS.txt for the list of SwiftAWSLambdaRuntime project authors
10
+ //
11
+ // SPDX-License-Identifier: Apache-2.0
12
+ //
13
+ //===----------------------------------------------------------------------===//
14
+
15
+ #if compiler(>=6.2)
16
+ @_documentation ( visibility: internal)
17
+ public typealias _Lambda_SendableMetatype = SendableMetatype
18
+ #else
19
+ @_documentation ( visibility: internal)
20
+ public typealias _Lambda_SendableMetatype = Any
21
+ #endif
You can’t perform that action at this time.
0 commit comments