Handbook
Glossary
stop ( -- * )
Factor handbook
»
The language
»
Co-operative threads
»
Starting and stopping threads
Prev:
(spawn) ( thread -- )
Vocabulary
threads
Word description
Stops the current thread. The thread may be started again from another thread using
(spawn)
.
Definition
USING:
accessors
combinators
kernel
threads.private
;
IN:
threads
:
stop
( -- * )
self
[
exit-handler>>
( -- )
call-effect
]
[
unregister-thread
]
bi
next
(stop)
;