Adds a disposable to the CompositeDisposable or disposes the disposable if the CompositeDisposable is disposed.
Adds a disposable to the CompositeDisposable or disposes the disposable if the CompositeDisposable is disposed.
(Disposable): Disposable to add.
Rx.CompositeDisposable.prototype.add(item)
Performs the task of cleaning up resources.
Performs the task of cleaning up resources.
Rx.Disposable.prototype.dispose()
Gets a value that indicates whether the object is disposed.
Gets the number of disposables in the CompositeDisposable.
Removes and disposes the first occurrence of a disposable from the CompositeDisposable.
Removes and disposes the first occurrence of a disposable from the CompositeDisposable.
(Disposable): Disposable to remove.
(Boolean): true if the disposable was found and disposed; otherwise, false.
Rx.CompositeDisposable.prototype.remove(item)
Converts the existing CompositeDisposable to an array of disposables.
Converts the existing CompositeDisposable to an array of disposables. Does not dispose the objects.
(Array): An array of disposable objects.
Rx.CompositeDisposable.prototype.toarray()
Represents a group of disposable resources that are disposed together.