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.
Every subscriber gets the same completion value. Unsubscribing from the resulting maybe does not affect the original deferred value in any way.
Parameters
context
- – the coroutine context from which the resulting maybe is going to be signalled