/// A synchronization primitive that protects shared mutable state via mutual /// exclusion. /// /// The `Mutex` type offers non-recursive exclusive access to the state it is /// protecting by blocking threads attempting to acquire the lock. Only one /// execution context at a time has access to the value stored within the /// `Mutex` allowing for exclusive access. class Mutex<T>: @unchecked Sendable { /// The lock used to synchronize access to the value. var lock: NSLock /// The value protected by the mutex. var value: T