spawn-server ( quot name -- thread )
Factor handbook » The language » Co-operative threads » Starting and stopping threads

Prev:spawn ( quot name -- thread )
Next:<thread> ( quot name -- thread )


Vocabulary
threads

Inputs
quota quotation with stack effect ( -- ? )
namea string


Outputs
threada thread


Word description
Convenience wrapper around spawn which repeatedly calls the quotation in a new thread until it outputs f.

Examples
A thread that runs forever:
[ do-foo-bar t ] "Foo bar server" spawn-server


Definition