Available on macro
Suspends the execution of the calling thread for
f seconds. The other program threads continue to run during this time.
Terminate prematurely the currently executing thread.
Suspends the execution of the calling thread until the thread
thread has terminated.
Return the thread currently executing.
Re-schedule the calling thread without suspending it. This function can be used to give scheduling hints, telling the scheduler that now is a good time to switch to other threads.
new(f:() ‑> Void)
Creates a new thread that executes function
Exceptions caused while executing
f are printed to stderr and are not propagated to the parent thread.
Return the identifier of the given thread. A thread identifier is an integer that identifies uniquely the thread. It can be used to build data structures indexed by threads.
Terminate prematurely the thread whose handle is given. This functionality is available only with bytecode-level threads.
© 2005–2020 Haxe Foundation
Licensed under a MIT license.