UnfairAtomic
@propertyWrapper
public final class UnfairAtomic<Value> : Atomic
Atomic based on UnfairLock.
This type of lock can be a good choice when per-lock overhead is important (because for some reason you have a huge number of them) and you don’t need fancy features. It’s implemented as a single 32-bit integer which you can place wherever you need it, so overhead is small.
-
Undocumented
Declaration
Swift
public var wrappedValue: Value { get set }
-
Undocumented
Declaration
Swift
public var projectedValue: UnfairAtomic<Value> { get }
-
Undocumented
Declaration
Swift
public init(wrappedValue: Value)