From dd99c36d39d492e39c205d3eda42b0de3308e783 Mon Sep 17 00:00:00 2001 From: Clack Cole Date: Wed, 27 Nov 2024 09:36:54 -0700 Subject: [PATCH] fix: NSLock subclassing issue Import CoreFoundation as a temporary workaround https://github.com/ReactiveX/RxSwift/issues/2621 --- Platform/AtomicInt.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Platform/AtomicInt.swift b/Platform/AtomicInt.swift index cef1c1f0c..303740f6f 100644 --- a/Platform/AtomicInt.swift +++ b/Platform/AtomicInt.swift @@ -6,6 +6,9 @@ // Copyright © 2018 Krunoslav Zaher. All rights reserved. // +import CoreFoundation +// This CoreFoundation import can be dropped when this issue is resolved: +// https://github.com/swiftlang/swift-corelibs-foundation/pull/5122 import Foundation final class AtomicInt: NSLock, @unchecked Sendable {