arrow-continuations
1.0.3-alpha.23
common
arrow-continuations
/
arrow.continuations.generic
/
RestrictedScope
/
shift
shift
common
abstract
suspend
fun
<
A
>
shift
(
f
:
suspend
RestrictedScope
<
R
>
.
(
DelimitedContinuation
<
A
,
R
>
)
->
R
)
:
A
Content copied to clipboard
Capture the continuation and pass it to
f
.
open
suspend override
fun
<
A
>
shift
(
r
:
R
)
:
A
Content copied to clipboard
Exit the
DelimitedScope
with
R