MainThreadDisposable

abstract class MainThreadDisposable : Disposable

Copy of the MainThreadDisposable from RxAndroid which makes use of . This allows disposing on the JVM without crashing due to the looper check (which is often stubbed in tests).

Functions

dispose
Link copied to clipboard
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
fun isDisposed(): Boolean
toAutoCloseable
Link copied to clipboard
open fun toAutoCloseable(disposable: Disposable): AutoCloseable