Skip to content

Commit 131d174

Browse files
author
Sebastien Stormacq
committed
add comments
1 parent 2193c16 commit 131d174

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/AWSLambdaRuntime/LambdaContext.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ public struct ClientContext: Codable, Sendable {
8686
/// The Lambda runtime generates and passes the `LambdaContext` to the Lambda handler as an argument.
8787
@available(LambdaSwift 2.0, *)
8888
public struct LambdaContext: CustomDebugStringConvertible, Sendable {
89+
90+
// use a final class a storage to have value type semantic with
91+
// low overhead of class for copy on write operations
92+
// https://www.youtube.com/watch?v=iLDldae64xE
8993
final class _Storage: Sendable {
9094
let requestID: String
9195
let traceID: String

0 commit comments

Comments
 (0)