Eager Effect
Deprecated
Use the arrow.core.raise.Effect type instead, which is more general and can be used to and can be used to raise typed errors or _logical failures_ The Raise<R> type is source compatible, a simple find & replace of arrow.core.continuations.* to arrow.core.raise.* will do the trick.
RestrictsSuspension version of Effect. This version runs eagerly, and can be used in non-suspending code. An effect computation interoperates with an EagerEffect via bind
.
See also
Functions
Runs the non-suspending computation by creating a Continuation with an EmptyCoroutineContext, and running the fold
function over the computation.
Like fold
but also allows folding over any unexpected Throwable that might have occurred.
fold the EagerEffect into an Either. Where the shifted value R is mapped to Either.Left, and result value A is mapped to Either.Right.
fold the EagerEffect into an Validated. Where the shifted value R is mapped to Validated.Invalid, and result value A is mapped to Validated.Valid.