Synchronized
@propertyWrapper
public struct Synchronized<T>
Property wrapper for SynchronizedVar
wrapper.
Makes sure the get and set are happening synchronously by using
SynchronizedVar
for reader/writing to the wrapped value
-
Initialize a Synchronized wrapper
Declaration
Swift
public init(wrappedValue backing: T)
Parameters
backing
the initial value
-
Get/Set the backed value
Declaration
Swift
public var wrappedValue: T { get set }
-
Projected self
Declaration
Swift
public var projectedValue: Synchronized<T> { get set }