arrow-effects-reactor-extensions / arrow.effects.reactor.extensions.monok.monad

Package arrow.effects.reactor.extensions.monok.monad

Extensions for External Classes



binding fun <A> binding(arg0: suspend MonadContinuation<ForMonoK, *>.() -> A): MonoK<A>
Entry point for monad bindings which enables for comprehension. 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
tailRecM fun <A, B> tailRecM(arg0: A, arg1: (A) -> Kind<ForMonoK, Either<A, B>>): MonoK<B>