Skip to content

Commit e5e6694

Browse files
author
Sebastien Stormacq
committed
add Sendable to LambdaResponseStreamWriter
1 parent a500f39 commit e5e6694

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/AWSLambdaRuntime/LambdaHandlers.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public protocol StreamingLambdaHandler: _Lambda_SendableMetatype {
4848

4949
/// A writer object to write the Lambda response stream into. The HTTP response is started lazily.
5050
/// before the first call to ``write(_:)`` or ``writeAndFinish(_:)``.
51-
public protocol LambdaResponseStreamWriter {
51+
public protocol LambdaResponseStreamWriter: Sendable {
5252
/// Write a response part into the stream. Bytes written are streamed continually.
5353
/// - Parameter buffer: The buffer to write.
5454
/// - Parameter hasCustomHeaders: If `true`, the response will be sent with custom HTTP status code and headers.

0 commit comments

Comments
 (0)