Emitter

interface Emitter

Base interface for emitting signals from various sources. Note that emitters' methods must be called synchronously, never concurrently. Unlike Observer it is safe to call any methods of Emitter in any order.

Inheritors

Properties

Link copied to clipboard
abstract val isDisposed: Boolean

Functions

Link copied to clipboard
inline fun Emitter.setCancellable(crossinline cancellable: () -> Unit)
Link copied to clipboard
abstract fun setDisposable(disposable: Disposable?)

Sets a Disposable on this emitter, any existing Disposable will be replaced and disposed.