Atomic

@propertyWrapper
public class Atomic<T>

Protoperty wrapper to access a property atomically

  • Actual value

    Declaration

    Swift

    public var wrappedValue: T { get set }
  • Undocumented

    Declaration

    Swift

    public var projectedValue: Atomic<T> { get }
  • Constructor

    Declaration

    Swift

    public init(wrappedValue: T)