diff --git a/Sources/NIOConcurrencyHelpers/NIOLock.swift b/Sources/NIOConcurrencyHelpers/NIOLock.swift index 25b0d1b612..af3818aef3 100644 --- a/Sources/NIOConcurrencyHelpers/NIOLock.swift +++ b/Sources/NIOConcurrencyHelpers/NIOLock.swift @@ -185,8 +185,6 @@ final class LockStorage: ManagedBuffer { } } -extension LockStorage: @unchecked Sendable {} - /// A threading lock based on `libpthread` instead of `libdispatch`. /// /// - Note: ``NIOLock`` has reference semantics. @@ -253,7 +251,7 @@ extension NIOLock { } } -extension NIOLock: Sendable {} +extension NIOLock: @unchecked Sendable {} extension UnsafeMutablePointer { @inlinable diff --git a/Sources/NIOConcurrencyHelpers/NIOLockedValueBox.swift b/Sources/NIOConcurrencyHelpers/NIOLockedValueBox.swift index f13a9d9e6b..407588a75e 100644 --- a/Sources/NIOConcurrencyHelpers/NIOLockedValueBox.swift +++ b/Sources/NIOConcurrencyHelpers/NIOLockedValueBox.swift @@ -79,4 +79,4 @@ public struct NIOLockedValueBox { } } -extension NIOLockedValueBox: Sendable where Value: Sendable {} +extension NIOLockedValueBox: @unchecked Sendable where Value: Sendable {}