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
2323import Foundation
2424#endif
2525
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
2727// We use an Atomic here to ensure thread safety
2828private let _isRunning = Atomic < Bool > ( false )
2929
3030// We need `@unchecked` Sendable here, as `NIOLockedValueBox` does not understand `sending` today.
3131// We don't want to use `NIOLockedValueBox` here anyway. We would love to use Mutex here, but this
3232// sadly crashes the compiler today (on Linux).
33+ // See https://github.com/swiftlang/swift/issues/80036
3334public final class LambdaRuntime < Handler> : @unchecked Sendable where Handler: StreamingLambdaHandler {
3435 // TODO: We want to change this to Mutex as soon as this doesn't crash the Swift compiler on Linux anymore
3536 @usableFromInline
You can’t perform that action at this time.
0 commit comments