auto Disposable
open fun <@NonNull() T> autoDisposable(provider: ScopeProvider): AutoDisposeConverter<T>
Content copied to clipboard
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
Parameters
provider
the target scope provider
<T>
the stream type.
open fun <@NonNull() T> autoDisposable(scope: CompletableSource): AutoDisposeConverter<T>
Content copied to clipboard
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
Parameters
scope
the target scope
<T>
the stream type.