Thread type

Execution thread. Currently a POSIX thread.

Methods

init(t:Thread, name:Str, f:Fun, arg:Any) Source: stdlib.ngs:5626
Creates and runs a thread. The code that the created thread runs is f, which is passed arg.
init(t:Thread, f:Fun, arg:Any) Source: stdlib.ngs:5654
Creates and runs a thread. The code that the created thread runs is f, which is passed arg.
init(t:Thread, f:Fun) Source: stdlib.ngs:5659
Creates and runs a thread. The code that the created thread runs is f without arguments.
init(t:Thread, name:Str, f:Fun) Source: stdlib.ngs:5664
Creates and runs a thread. The code that the created thread runs is f without arguments.
join(t:Thread) Source: stdlib.ngs:5691
Joins on thread. Waits for the thread to finish and returns the result from the thread. If the thread threw an exception, throws OtherThreadFail with .cause set to that exception.

Returns

Any
Str(t:Thread) Source: stdlib.ngs:5815
Undocumented