BlockingVar
public class BlockingVar<T>
BlockingVar blocks the [value.get] call until the [value.set] has set the value.
Note: be aware of blocking the main-thread when the getter is invoked from the main-thread.
-
Initialize w/o value
Declaration
Swift
public init() -
Initialize w/ value value
Declaration
Swift
public init(_ value: T) -
Access value
Declaration
Swift
public var value: T { get set } -
Non-blocking check whether self has been fulfilled or not
Declaration
Swift
public var isFulfilled: Bool { get }Return Value
trueon .fulfilledfalsewhen .empty