docs/Classes/BooleanDisposable.html
public final class BooleanDisposable : Cancelable
Represents a disposable resource that can be checked for disposal status.
`
init()
`
Initializes a new instance of the BooleanDisposable class
Swift
public init()
`
init(isDisposed:)
`
Initializes a new instance of the BooleanDisposable class with given value
Swift
public init(isDisposed: Bool)
`
isDisposed
`
Swift
public var isDisposed: Bool { get }
Was resource disposed.
`
dispose()
`
Sets the status to disposed, which can be observer through the isDisposed property.
Swift
public func dispose()