value

    The value of the state variable.

    lock.swift:176
    var value: T { get }

    Obtaining the value of the state variable requires acquiring the lock. This means that it is not safe to access this property while holding the lock: it is only safe to use it when not holding it.

    Other members in extension

    Type members

    • init(value: T)

      Create the lock, and initialize the state variable to value.

    Instance members