You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a struct with an internal NSLock, e.g.
structMyLockWrapper{letlock:NSLock=.init()}
and confirming this struct to Sendable
extensionMyLockWrapper: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'
This could also be platform-dependent, Apple documentation doesn't cover swift-corelibs-libdispatch, which largely lacks Sendable annotations for vast majority of its types.
When creating a struct with an internal
NSLock
, e.g.and confirming this struct to
Sendable
SourceKitD generates the following warning about
NSLock
not conforming toSendable
:stored property 'lock' of 'Sendable'-conforming struct 'MyLockWrapper' has non-sendable type 'NSLock'
Even though the Apple developer documentation explicitly says it does
The text was updated successfully, but these errors were encountered: