arrow-continuations
1.1.6-alpha.24
common
arrow-continuations
/
arrow.continuations.generic
/
RestrictedScope
/
shift
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