File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -66,15 +66,12 @@ extension OpenAPILambda {
6666
6767// on Swift 6.2, with approachable concurrency, the compiler considers
6868// the `lambdaHandler` can not be sent to the `LambdaRuntime(body:)` directly
69- // despite the fact `lambdaHandler` is not used after that
69+ // despite the fact `lambdaHandler` is not used after the call.
7070// There are two workarounds:
7171// - make `OpenAPILambda` conform to `Sendable`. But this would require users to ensure their implementations are also `Sendable`
7272// - wrap the handler in a `UnsafeTransferBox`
7373#if swift(>=6.2)
74- fileprivate struct UnsafeTransferBox < Value> : @unchecked Sendable {
74+ private struct UnsafeTransferBox < Value> : @unchecked Sendable {
7575 let value : Value
76- init ( value: Value ) {
77- self . value = value
78- }
7976}
8077#endif
You can’t perform that action at this time.
0 commit comments