arrow-fx / arrow.fx.extensions / IOMonadError

IOMonadError

interface ~~IOMonadError~~ : MonadError<ForIO, Throwable>, IOApplicativeError, IOMonad Deprecated: The IO datatype and it’s related type classes will disappear in Arrow 0.13.0. All useful operations are offered directly over suspend functions by Arrow Fx Coroutines. https://arrow-kt.io/docs/fx/async/

Functions

ap open fun <A, B> IOOf<A>.ap(ff: IOOf<(A) -> B>): IO<B>
apEval open fun <A, B> Kind<ForIO, A>.apEval(ff: Eval<Kind<ForIO, (A) -> B>>): Eval<Kind<ForIO, B>>
attempt open fun <A> IOOf<A>.attempt(): IO<Either<Throwable, A>>
handleErrorWith open fun <A> IOOf<A>.handleErrorWith(f: (Throwable) -> IOOf<A>): IO<A>
just open fun <A> just(a: A): IO<A>
map open fun <A, B> IOOf<A>.map(f: (A) -> B): IO<B>
raiseError open fun <A> raiseError(e: Throwable): IO<A>
redeemWith open fun <A, B> IOOf<A>.redeemWith(fe: (Throwable) -> IOOf<B>, fb: (A) -> IOOf<B>): IO<B>

Inheritors

IOMonadThrow interface ~~IOMonadThrow~~ : MonadThrow<ForIO>, IOMonadError

Do you like Arrow?

Arrow Org
<