AutoDisposingSubscriber

interface AutoDisposingSubscriber<@NonNull() T> : FlowableSubscriber<T> , Subscription, Disposable

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

Functions

cancel
Link copied to clipboard
abstract fun cancel()
delegateSubscriber
Link copied to clipboard
abstract fun delegateSubscriber(): Subscriber<out Any>
Returns the delegate Subscriber 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
onComplete
Link copied to clipboard
abstract fun onComplete()
onError
Link copied to clipboard
abstract fun onError(p: Throwable)
onNext
Link copied to clipboard
abstract fun onNext(p: T)
onSubscribe
Link copied to clipboard
abstract fun onSubscribe(s: Subscription)
request
Link copied to clipboard
abstract fun request(p: Long)
toAutoCloseable
Link copied to clipboard
open fun toAutoCloseable(disposable: Disposable): AutoCloseable