CompositeDisposable

Defines a Disposable implementation that can dispose of multiple other Disposable implementations in one go.

Properties

Link copied to clipboard
abstract val isDisposed: Boolean

Specifies whether or not this resource is currently disposed or not.

Functions

Link copied to clipboard
abstract fun add(disposable: Disposable)

Adds the given disposable to be disposed of later.

Link copied to clipboard
abstract fun dispose()

Disposes of this resource.

Link copied to clipboard
abstract fun remove(disposable: Disposable)

Removes the given disposable if it present.