ifNotDisposed

inline fun <T : Any> MaybeEmitter<T>.ifNotDisposed(body: MaybeEmitter<T>.() -> Unit)
inline fun <T : Any> SingleEmitter<T>.ifNotDisposed(body: SingleEmitter<T>.() -> Unit)
inline fun CompletableEmitter.ifNotDisposed(body: CompletableEmitter.() -> Unit)
inline fun <T : Any> ObservableEmitter<T>.ifNotDisposed(body: ObservableEmitter<T>.() -> Unit)

Checks if this is already disposed before invoking body.

Parameters

body

that will only be invoked if isDisposed is false