Disposable
public protocol Disposable
An protocol representing some long-lived operation that can be disposed.
-
Whether this disposable has been disposed.
Declaration
Swift
var isDisposed: Bool { get } -
Disposes of this resource.
Declaration
Swift
func dispose() -
addTo(_:Extension method) Add the disposable to a group so that it can be disposed along the others.
Declaration
Swift
func addTo(_ container: CompositeDisposable)Parameters
containerThe
CompositeDisposablegroup that will contain the disposable
View on GitHub