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 {
66
66
67
67
// on Swift 6.2, with approachable concurrency, the compiler considers
68
68
// 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.
70
70
// There are two workarounds:
71
71
// - make `OpenAPILambda` conform to `Sendable`. But this would require users to ensure their implementations are also `Sendable`
72
72
// - wrap the handler in a `UnsafeTransferBox`
73
73
#if swift(>=6.2)
74
- fileprivate struct UnsafeTransferBox < Value> : @unchecked Sendable {
74
+ private struct UnsafeTransferBox < Value> : @unchecked Sendable {
75
75
let value : Value
76
- init ( value: Value ) {
77
- self . value = value
78
- }
79
76
}
80
77
#endif
You can’t perform that action at this time.
0 commit comments