BooleanDisposable

public final class BooleanDisposable : Cancelable

Represents a disposable resource that can be checked for disposal status.

  • Initializes a new instance of the BooleanDisposable class

    Declaration

    Swift

    public init()
  • Initializes a new instance of the BooleanDisposable class with given value

    Declaration

    Swift

    public init(isDisposed: Bool)
  • Declaration

    Swift

    public var isDisposed: Bool { get }

    Return Value

    Was resource disposed.

  • Sets the status to disposed, which can be observer through the isDisposed property.

    Declaration

    Swift

    public func dispose()