arrow-fx / arrow.fx.extensions / arrow.core.Either / toIO
fun <E, A> Either<E, A>.~~toIO~~(f: (E) ->
Throwable
):
IO
<A>
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/
converts this Either to an IO. The resulting IO will evaluate to this Eithers Right value or alternatively to the result of applying the specified function to this Left value.
fun <A> Either<
Throwable
, A>.~~toIO~~():
IO
<A>
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/
converts this Either to an IO. The resulting IO will evaluate to this Eithers Right value or Left exception.
Do you like Arrow?
✖