File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -23,13 +23,14 @@ import FoundationEssentials
23
23
import Foundation
24
24
#endif
25
25
26
- // This is our gardian to ensure only one LambdaRuntime is running at the time
26
+ // This is our guardian to ensure only one LambdaRuntime is running at the time
27
27
// We use an Atomic here to ensure thread safety
28
28
private let _isRunning = Atomic < Bool > ( false )
29
29
30
30
// We need `@unchecked` Sendable here, as `NIOLockedValueBox` does not understand `sending` today.
31
31
// We don't want to use `NIOLockedValueBox` here anyway. We would love to use Mutex here, but this
32
32
// sadly crashes the compiler today (on Linux).
33
+ // See https://github.com/swiftlang/swift/issues/80036
33
34
public final class LambdaRuntime < Handler> : @unchecked Sendable where Handler: StreamingLambdaHandler {
34
35
// TODO: We want to change this to Mutex as soon as this doesn't crash the Swift compiler on Linux anymore
35
36
@usableFromInline
You can’t perform that action at this time.
0 commit comments