Effect Scope
Context of the Effect DSL.
Functions
Link copied to clipboard
Runs the EagerEffect to finish, returning B or shift in case of R, bridging eager computations into suspending.
Inheritors
Extensions
Link 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.