RestrictedScope

Deprecated

arrow.continuation is being discontinued and will be removed in the next version in favor of the Effect/ EagerEffect Runtime. If you depend on low-level APIs as in arrow.continuation, feel free to write us in the Kotlin Slack channel for guidance.

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.