You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Write a response part into the stream. Bytes written are streamed continually.
53
53
/// - Parameter buffer: The buffer to write.
54
54
/// - Parameter hasCustomHeaders: If `true`, the response will be sent with custom HTTP status code and headers.
@@ -69,7 +69,7 @@ public protocol LambdaResponseStreamWriter {
69
69
/// - note: This handler protocol does not support response streaming because the output has to be encoded prior to it being sent, e.g. it is not possible to encode a partial/incomplete JSON string.
70
70
/// This protocol also does not support the execution of background work after the response has been returned -- the ``LambdaWithBackgroundProcessingHandler`` protocol caters for such use-cases.
71
71
@available(LambdaSwift 2.0,*)
72
-
publicprotocolLambdaHandler{
72
+
publicprotocolLambdaHandler:Sendable{
73
73
/// Generic input type.
74
74
/// The body of the request sent to Lambda will be decoded into this type for the handler to consume.
75
75
associatedtypeEvent
@@ -92,7 +92,7 @@ public protocol LambdaHandler {
92
92
/// ``LambdaWithBackgroundProcessingHandler/handle(_:outputWriter:context:)`` function is then
93
93
/// free to implement any background work after the result has been sent to the AWS Lambda control plane.
/// The body of the request sent to Lambda will be decoded into this type for the handler to consume.
98
98
associatedtypeEvent
@@ -116,7 +116,7 @@ public protocol LambdaWithBackgroundProcessingHandler {
116
116
/// Used with ``LambdaWithBackgroundProcessingHandler``.
117
117
/// A mechanism to "return" an output from ``LambdaWithBackgroundProcessingHandler/handle(_:outputWriter:context:)`` without the function needing to
118
118
/// have a return type and exit at that point. This allows for background work to be executed _after_ a response has been sent to the AWS Lambda response endpoint.
0 commit comments