AutoDispose
class AutoDispose
Factories for autodispose converters that can be used with RxJava types' corresponding
as(...)
methods to transform them into auto-disposing streams.
There are several static autoDisposable(...)
entry points, with the most basic being a simple autoDisposable. The provided CompletableSource is ultimately what every scope resolves to under the hood, and AutoDispose has some built-in understanding for predefined types. The scope is considered ended upon onComplete emission of this Completable.
This is structured in such a way to be friendly to autocompletion in IDEs, where the no-parameter generic method will autocomplete with the appropriate generic parameters in Java <7, or implicitly in >=8.
See also
Functions
Link copied to clipboard
Entry point for auto-disposing streams from a ScopeProvider.
Entry point for auto-disposing streams from a CompletableSource.