Package arrow. core. continuations
Types
Link copied to clipboard
Link copied to clipboard
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
.
Link copied to clipboard
Context of the EagerEffect DSL.
Link copied to clipboard
Context of the Effect DSL.
Link copied to clipboard
class IorEagerEffectScope<E>(semigroup: Semigroup<E>, effect: EagerEffectScope<E>) : EagerEffectScope<E> , Semigroup<E>
Content copied to clipboard
Link copied to clipboard
class IorEffectScope<E>(semigroup: Semigroup<E>, effect: EffectScope<E>) : EffectScope<E> , Semigroup<E>
Content copied to clipboard
Link copied to clipboard
value class NullableEagerEffectScope(cont: EagerEffectScope<Nothing?>) : EagerEffectScope<Nothing?>
Content copied to clipboard
Link copied to clipboard
value class NullableEffectScope(cont: EffectScope<Nothing?>) : EffectScope<Nothing?>
Content copied to clipboard
Link copied to clipboard
value class OptionEagerEffectScope(cont: EagerEffectScope<None>) : EagerEffectScope<None>
Content copied to clipboard
Link copied to clipboard
value class OptionEffectScope(cont: EffectScope<None>) : EffectScope<None>
Content copied to clipboard
Link copied to clipboard
value class ResultEagerEffectScope(cont: EagerEffectScope<Throwable>) : EagerEffectScope<Throwable>
Content copied to clipboard
Link copied to clipboard
value class ResultEffectScope(cont: EffectScope<Throwable>) : EffectScope<Throwable>
Content copied to clipboard
Link copied to clipboard
AVOID USING THIS TYPE, it's meant for low-level cancellation code When in need in low-level code, you can use this type to differentiate between a foreign CancellationException and the one from Effect.
Functions
Link copied to clipboard
fun <R, A> eagerEffect(f: suspend EagerEffectScope<R>.() -> A): EagerEffect<R, A>
Content copied to clipboard
DSL for constructing EagerEffect<R, A>
values
Link copied to clipboard
suspend fun <R, B : Any> EagerEffectScope<R>.ensureNotNull(value: B?, shift: () -> R): B
Content copied to clipboard
suspend fun <R, B : Any> EffectScope<R>.ensureNotNull(value: B?, shift: () -> R): B
Content copied to clipboard
Ensure that value is not null
. if it's non-null it will be smart-casted and returned if it's false
it will shift
with the provided value R. Monadic version of kotlin.requireNotNull.
Link copied to clipboard
Link copied to clipboard