shift

abstract suspend fun <A> shift(f: suspend RestrictedScope<R>.(DelimitedContinuation<A, R>) -> R): A

Capture the continuation and pass it to f.


open suspend override fun <A> shift(r: R): A

Exit the DelimitedScope with R