CompositeDisposable

class CompositeDisposable

Author

skydoves (Jaewoong Eum)

A disposable container that can hold onto multiple other disposables.

Constructors

Link copied to clipboard
fun CompositeDisposable()

Properties

Link copied to clipboard
var disposed: Boolean = false

Functions

Link copied to clipboard
fun add(disposable: Disposable)

adds a new Disposable to this CompositeDisposable if not yet disposed.

Link copied to clipboard
fun clear()

disposes all disposables that are currently part of this CompositeDisposable.

Link copied to clipboard
fun remove(disposable: Disposable)

removes a Disposable from this CompositeDisposable and dispose the target.