Operators and functions for working with threads (thread type) are described here.
thread = thread
The resume function continues the work of the thread that was stopped by suspend function.
The sleep function pauses the current thread for at least the duration, in milliseconds.
The suspend function suspends the th thread. Use the resume function to continue the thread.
The terminate function terminates the thread. If the thread has already completed, the function does nothing.
The wait function waits for the th thread to finish. If the thread has already finished, the function does nothing.