Handbook
Glossary
yield ( -- )
Factor handbook
»
The language
»
Co-operative threads
»
Yielding and suspending threads
Next:
sleep ( dt -- )
Vocabulary
threads
Word description
Adds the current thread to the end of the run queue, and switches to the next runnable thread.
Definition
USING:
kernel
;
IN:
threads
:
yield
( -- )
self
resume
f
suspend
drop
;