binding

inline suspend fun <V, E> binding(crossinline block: suspend SuspendableResultBinding<E>.() -> V): Result<V, E>

Suspending variant of binding. The suspendable block runs in a new CoroutineScope, inheriting the parent CoroutineContext. This new scope is cancelled once a failing bind is encountered, eagerly cancelling all child jobs.