Package arrow
Types
Cont Effect
Link copied to clipboard
Context of the Cont DSL.
Ior Effect
Link copied to clipboard
class IorEffect<E>(semigroup: Semigroup<E>, cont: ContEffect<E>) : ContEffect<E> , Semigroup<E>
Content copied to clipboard
Option Effect
Link copied to clipboard
Restricted Cont
Link copied to clipboard
Restricted Cont Effect
Link copied to clipboard
Shift Cancellation Exception
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 Cont.
Functions
ensure Not Null
Link copied to clipboard
suspend fun <R, B : Any> ContEffect<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.
restricted Cont
Link copied to clipboard
fun <R, A> restrictedCont(f: suspend RestrictedContEffect<R>.() -> A): RestrictedCont<R, A>
Content copied to clipboard
RestrictsSuspension
version of Cont<R, A>
. This version runs eagerly, can can be used in non-suspending code.