NGS version 0.2.16 auto-generated documentation
Documentation index
The global namespace
Thread type
Thread type
Execution thread. Currently a POSIX thread.
Methods
init(
t:Thread
,
name:
Str
,
f:
Fun
,
arg:
Any
)
Source:
stdlib.ngs:4835
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:4856
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:4861
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:4866
Creates and runs a thread. The code that the created thread runs is f without arguments.
join(
t:Thread
)
Source:
stdlib.ngs:4894
Joins on thread. Waits for the thread to finish and returns the result from the thread. Currently, if a thread throwed an exception, it will be returned as the value. In future it might re-throw the exception, probably wrapped in ThreadExeption.
Returns
Any
Str(
t:Thread
)
Source:
stdlib.ngs:4994
Undocumented