RestrictedScope

interface RestrictedScope<R> : DelimitedScope<R>

Functions

Link copied to clipboard
open suspend override fun <A> shift(r: R): A

Exit the DelimitedScope with R

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

Capture the continuation and pass it to f.