We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23c4b64 commit 57e2396Copy full SHA for 57e2396
Sources/AWSLambdaRuntime/LambdaRuntime.swift
@@ -57,7 +57,7 @@ public final class LambdaRuntime<Handler>: @unchecked Sendable where Handler: St
57
public func run() async throws {
58
59
// we use an atomic global variable to ensure only one LambdaRuntime is running at the time
60
- let (_, original) = _isRunning.compareExchange(expected: false, desired: true, ordering: .relaxed)
+ let (_, original) = _isRunning.compareExchange(expected: false, desired: true, ordering: .acquiringAndReleasing)
61
62
// if the original value was already true, run() is already running
63
if original {
0 commit comments