Handbook
Glossary
coterminate ( v -- )
Vocabulary
coroutines
Inputs
v
an
object
Outputs
None
Word description
Terminate the current coroutine, leaving the value v on the stack when control is passed to the
coresume
caller. Resuming a terminated coroutine is a no-op.
See also
coyield
,
coreset
Definition
USING:
accessors
continuations
namespaces
;
IN:
coroutines
:
coterminate
( v -- )
current-coro
get
[
]
>>resumecc
exitcc>>
continue-with
;