RestrictedNullableEffect

fun interface RestrictedNullableEffect<A> : NullableEffect<A>

Functions

Link copied to clipboard
open suspend fun <B> B?.bind(): B
open suspend fun <B> Option<B>.bind(): B
Link copied to clipboard
abstract fun control(): DelimitedScope<A?>
Link copied to clipboard
open suspend fun ensure(value: Boolean)

Ensure check if the value is true, and if it is it allows the nullable { } binding to continue. In case it is false, then it short-circuits the binding and returns null.