arrow-core-data / arrow.typeclasses / MonadThrowContinuation

MonadThrowContinuation

open class MonadThrowContinuation<F, A> : MonadContinuation<F, A>, MonadThrow<F>, MonadThrowSyntax<F>

Constructors

<init> MonadThrowContinuation(ME: MonadThrow<F>, context: CoroutineContext = EmptyCoroutineContext)

Properties

context open val context: CoroutineContext
fx Entry point for monad bindings which enables for comprehensions. The underlying implementation is based on coroutines. A coroutine is initiated and suspended inside MonadThrowContinuation yielding to Monad.flatMap. Once all the flatMap binds are completed, the underlying monad is returned from the act of executing the coroutine.open val fx: MonadThrowFx<F>

Functions

resumeWithException open fun resumeWithException(exception: Throwable): Unit

Do you like Arrow?

Arrow Org
<