@@ -16,7 +16,7 @@ import NIOCore
16
16
17
17
/// The protocol a decoder must conform to so that it can be used with ``LambdaCodableAdapter`` to decode incoming
18
18
/// `ByteBuffer` events.
19
- public protocol LambdaEventDecoder : Sendable {
19
+ public protocol LambdaEventDecoder {
20
20
/// Decode the `ByteBuffer` representing the received event into the generic `Event` type
21
21
/// the handler will receive.
22
22
/// - Parameters:
@@ -28,7 +28,7 @@ public protocol LambdaEventDecoder: Sendable {
28
28
29
29
/// The protocol an encoder must conform to so that it can be used with ``LambdaCodableAdapter`` to encode the generic
30
30
/// ``LambdaOutputEncoder/Output`` object into a `ByteBuffer`.
31
- public protocol LambdaOutputEncoder : Sendable {
31
+ public protocol LambdaOutputEncoder {
32
32
associatedtype Output
33
33
34
34
/// Encode the generic type `Output` the handler has returned into a `ByteBuffer`.
@@ -52,7 +52,7 @@ public struct LambdaHandlerAdapter<
52
52
Event: Decodable ,
53
53
Output,
54
54
Handler: LambdaHandler
55
- > : LambdaWithBackgroundProcessingHandler where Handler. Event == Event , Handler. Output == Output , Handler : Sendable {
55
+ > : LambdaWithBackgroundProcessingHandler where Handler. Event == Event , Handler. Output == Output {
56
56
@usableFromInline let handler : Handler
57
57
58
58
/// Initializes an instance given a concrete handler.
@@ -86,15 +86,7 @@ public struct LambdaCodableAdapter<
86
86
Output,
87
87
Decoder: LambdaEventDecoder ,
88
88
Encoder: LambdaOutputEncoder
89
- > : StreamingLambdaHandler
90
- where
91
- Handler. Event == Event ,
92
- Handler. Output == Output ,
93
- Encoder. Output == Output ,
94
- Handler: Sendable ,
95
- Decoder: Sendable ,
96
- Encoder: Sendable
97
- {
89
+ > : StreamingLambdaHandler where Handler. Event == Event , Handler. Output == Output , Encoder. Output == Output {
98
90
@usableFromInline let handler : Handler
99
91
@usableFromInline let encoder : Encoder
100
92
@usableFromInline let decoder : Decoder
0 commit comments