Cont Effect
Context of the Cont DSL.
Functions
Inheritors
Extensions
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.
Sources
common source
Link copied to clipboard