composite
Creates a CompositeDisposable which can be used to store multiple Disposable instances for bulk disposal.
Additional Disposable instances can be added via CompositeDisposable.add, or existing instances can be removed via CompositeDisposable.remove.
The returned implementation is not considered to be thread-safe, so interaction is expected to be constrained to an appropriate thread by the user.
Return
A Disposable to use to dispose of multiple subscriptions at once.
Creates a CompositeDisposable which can be used to store multiple Disposable instances for bulk disposal. All methods are executed using the given scheduler to ensure operation is thread-safe.
Additional Disposable instances can be added via CompositeDisposable.add, or existing instances can be removed via CompositeDisposable.remove.
Return
A Disposable to use to dispose of multiple subscriptions at once, whilst ensuring that all operations happen on the given scheduler
Parameters
The Scheduler implementation to use for all operations of this Disposable