Atomic

public struct Atomic<A>

Atomic class

  • Getter for the value.

    Declaration

    Swift

    public var value: A { get }
  • Creates an instance of value.

    Declaration

    Swift

    public init(_ value: A)
  • Setter for the value.

    Declaration

    Swift

    public mutating func mutate(_ transform: (inout A) -> Void)