mirror of
https://github.com/maxgoedjen/secretive.git
synced 2026-06-29 17:31:36 +00:00
15 lines
244 B
Swift
15 lines
244 B
Swift
import os
|
|
|
|
public extension OSAllocatedUnfairLock where State: Sendable {
|
|
|
|
var lockedValue: State {
|
|
get {
|
|
withLock { $0 }
|
|
}
|
|
nonmutating set {
|
|
withLock { $0 = newValue }
|
|
}
|
|
}
|
|
|
|
}
|