thread::create

Difference between version 1 and 2 - Previous - Next
    :   '''[thread]::create''' ?'''-joinable'''? ?'''-preserved'''? ?''script''?

Creates an interpreter in another thread. That interpreter will have the [thread] [package] pre-loaded into it, and will be the master interpreter for that thread. If supplied, ''script'' will be evaluated within the new interpreter; otherwise a default script (containing just `[thread::wait]`) will be used.

Returns the ID (as in [thread::id]) of the newly created thread.

----
''[[TODO: Document the '''-joinable''' and '''-preserved''' options.]]''
<<categories>>Command | Threads