Closed
Description
When creating a struct with an internal NSLock
, e.g.
struct MyLockWrapper {
let lock: NSLock = .init()
}
and confirming this struct to Sendable
extension MyLockWrapper: Sendable {}
SourceKitD generates the following warning about NSLock
not conforming to Sendable
:
stored property 'lock' of 'Sendable'-conforming struct 'MyLockWrapper' has non-sendable type 'NSLock'
Even though the Apple developer documentation explicitly says it does
Metadata
Metadata
Assignees
Labels
No labels