Handbook
Glossary
coresume ( v co -- result )
Vocabulary
coroutines
Inputs
v
an
object
co
a
coroutine
Outputs
result
an
object
Word description
Resume a coroutine with v as the first item on the stack. The result placed on the stack is the value of the topmost argument on the stack when
coyield
is called within the coroutine.
See also
*coresume
,
coresume*
Definition
USING:
accessors
combinators
continuations
kernel
;
IN:
coroutines
:
coresume
( v co -- result )
[
>>exitcc
resumecc>>
( -- )
call-effect
f
over
]
callcc1
2nip
;