arrow-effects-rx2-extensions / arrow.effects.rx2.extensions.maybek.monadThrow

Package arrow.effects.rx2.extensions.maybek.monadThrow

Extensions for External Classes

arrow.effects.rx2.MaybeK  
kotlin.Throwable  

Functions

binding fun <B> binding(arg0: suspend MonadContinuation<ForMaybeK, *>.() -> B): MaybeK<B>
bindingCatch fun <B> bindingCatch(arg0: suspend MonadErrorContinuation<ForMaybeK, *>.() -> B): MaybeK<B>
Entry point for monad bindings which enables for comprehensions. The underlying implementation is based on coroutines. A coroutine is initiated and suspended inside MonadErrorContinuation yielding to Monad.flatMap. Once all the flatMap binds are completed, the underlying monad is returned from the act of executing the coroutine.