Extensions for kotlinx.coroutines.experimental.Deferred

asMaybe

fun <T> Deferred<T?>.asMaybe(
    context: CoroutineContext
): Maybe<T>

Converts this deferred value to the hot reactive maybe that signals onComplete, onSuccess or onError.

asSingle

fun <T> Deferred<T>.asSingle(
    context: CoroutineContext
): Single<T>

Converts this deferred value to the hot reactive single that signals either onSuccess or onError.