Handbook
Glossary
coreset ( v -- )
Vocabulary
coroutines
Inputs
v
an
object
Outputs
None
Word description
Reset the current coroutine, leaving the value v on the stack when control is passed to the
coresume
caller. When the coroutine is resumed, it will continue at the beginning of the coroutine.
See also
coyield
,
coterminate
Definition
USING:
accessors
continuations
kernel
namespaces
;
IN:
coroutines
:
coreset
( v -- )
current-coro
get
dup
originalcc>>
>>resumecc
exitcc>>
continue-with
;