autoDisposable

Entry point for auto-disposing streams from a ScopeProvider.

Example usage:


  Observable.just(1)
       .to(autoDisposable(scope)) // Static import
       .subscribe(...)

Return

an AutoDisposeConverter to transform with operators like to

Parameters

provider

the target scope provider

<T>

the stream type.


Entry point for auto-disposing streams from a CompletableSource.

Example usage:


  Observable.just(1)
       .to(autoDisposable(scope)) // Static import
       .subscribe(...)

Return

an AutoDisposeConverter to transform with operators like to

Parameters

scope

the target scope

<T>

the stream type.