Outcome Raise
Emulation of context receivers, when they're released this can be replaced by context receiver based code in Arrow itself.
We guarantee that the wrapped Any?
will only result in E
or Absent
. Exposing this as Raise<E>
gives natural interoperability with Raise<E>
DSLs (Either
).
Functions
Link copied to clipboard
open suspend fun <OtherError, A> attempt(f: suspend EffectScope<OtherError>.() -> A): Effect<OtherError, A>
Link copied to clipboard
Link copied to clipboard
open infix suspend fun <OtherError, A> Effect<OtherError, A>.catch(recover: suspend Raise<E>.(otherError: OtherError) -> A): A
Link copied to clipboard