Package io.reactivex.rxjava3.disposables
Default implementations for
Disposable
-based resource management
(Disposable
container types) and utility classes to construct
Disposables
from callbacks and other types.-
Interface Summary Interface Description Disposable Represents a disposable resource.DisposableContainer Common interface to add and remove disposables from a container. -
Class Summary Class Description ActionDisposable A Disposable container that manages anAction
instance.AutoCloseableDisposable A disposable container that manages anAutoCloseable
instance.CompositeDisposable A disposable container that can hold onto multiple otherDisposable
s and offers O(1) time complexity forCompositeDisposable.add(Disposable)
,CompositeDisposable.remove(Disposable)
andCompositeDisposable.delete(Disposable)
operations.FutureDisposable A Disposable container that cancels aFuture
instance.ReferenceDisposable<T> Base class for Disposable containers that manage some other type that has to be run when the container is disposed.RunnableDisposable A disposable container that manages aRunnable
instance.SerialDisposable A Disposable container that allows atomically updating/replacing the contained Disposable with another Disposable, disposing the old one when updating plus handling the disposition when the container itself is disposed.SubscriptionDisposable A Disposable container that handles aSubscription
.