AutoDisposingSingleObserver

interface AutoDisposingSingleObserver<@NonNull() T> : SingleObserver<T> , Disposable

A DisposableSingleObserver that can automatically dispose itself. Interface here for type safety but enforcement is left to the implementation.

Functions

delegateObserver
Link copied to clipboard
abstract fun delegateObserver(): SingleObserver<out Any>
Returns the delegate SingleObserver that is used under the hood for introspection purposes.
dispose
Link copied to clipboard
abstract fun dispose()
disposed
Link copied to clipboard
open fun disposed(): Disposable
empty
Link copied to clipboard
open fun empty(): Disposable
fromAction
Link copied to clipboard
open fun fromAction(action: Action): Disposable
fromAutoCloseable
Link copied to clipboard
open fun fromAutoCloseable(autoCloseable: AutoCloseable): Disposable
fromFuture
Link copied to clipboard
open fun fromFuture(future: Future<out Any>): Disposable
fromRunnable
Link copied to clipboard
open fun fromRunnable(run: Runnable): Disposable
fromSubscription
Link copied to clipboard
open fun fromSubscription(subscription: Subscription): Disposable
isDisposed
Link copied to clipboard
abstract fun isDisposed(): Boolean
onError
Link copied to clipboard
abstract fun onError(e: Throwable)
onSubscribe
Link copied to clipboard
abstract fun onSubscribe(d: Disposable)
onSuccess
Link copied to clipboard
abstract fun onSuccess(t: T)
toAutoCloseable
Link copied to clipboard
open fun toAutoCloseable(disposable: Disposable): AutoCloseable