Package-level declarations

Core implementation.

Types

Link copied to clipboard
Factories for autodispose converters that can be used with RxJava types' corresponding as(...) methods to transform them into auto-disposing streams.
Link copied to clipboard

A context intended for use as AutoDisposeContext.() -> Unit function body parameters where zero-arg autoDispose functions can be called. This should be backed by an underlying Completable or ScopeProvider.

Link copied to clipboard
A custom converter that implements all the RxJava types converters, for use with the as() operator.
Link copied to clipboard
Utility class to inject handlers to certain standard autodispose-lifecycle operations.
Link copied to clipboard
Subscribe proxy that matches Completable's subscribe overloads.
Link copied to clipboard
Subscribe proxy that matches Flowable's subscribe overloads.
Link copied to clipboard
Subscribe proxy that matches Maybe's subscribe overloads.
Link copied to clipboard
Subscribe proxy that matches Observable's subscribe overloads.
Link copied to clipboard
Signifies an error occurred due to execution starting outside the lifecycle.
Link copied to clipboard
Subscribe proxy that matches ParallelFlowable's subscribe overloads.
Link copied to clipboard
@DoNotMock(value = "Use TestScopeProvider instead")
interface ScopeProvider
Provides a CompletableSource representation of a scope.
Link copied to clipboard
class Scopes
Utilities for dealing with AutoDispose scopes.
Link copied to clipboard
Subscribe proxy that matches Single's subscribe overloads.
Link copied to clipboard
ScopeProvider implementation for testing.

Functions

Link copied to clipboard

Extension that proxies to Completable.as + AutoDispose.autoDisposable

Extension that proxies to Flowable.as + AutoDispose.autoDisposable

Extension that proxies to Maybe.as + AutoDispose.autoDisposable

Extension that proxies to Observable.as + AutoDispose.autoDisposable

Extension that proxies to Single.as + AutoDispose.autoDisposable

Link copied to clipboard
inline fun withScope(scope: ScopeProvider, body: AutoDisposeContext.() -> Unit)

Executes a body with an AutoDisposeContext backed by the given scope.

inline fun withScope(completableScope: Completable, body: AutoDisposeContext.() -> Unit)

Executes a body with an AutoDisposeContext backed by the given completableScope.