Instance Methodpointfreeco.swift-sharing 2.3.0Sharing
_unsafeLock
MutexBackport.swift:89borrowing func _unsafeLock()
borrowing func _unsafeLock()
where Value == ()
import Sharing
Instantly share state among your app’s features and external persistence layers, including user defaults, the file system, and more.
struct Mutex<Value> where Value : ~Copyable
A synchronization primitive that protects shared mutable state via mutual exclusion.
borrowing func _unsafeTryLock() -> Bool
borrowing func _unsafeUnlock()