Documentation

#WAITTHREAD

Added in v2.0

WAITTHREAD

Syntax: #WAITTH threadid flag timeout

Suspends the current thread and waits until the specified threadid has suspended or finished. The threadid can be the name or numeric ID value of the thread.

If flag is omitted or equal to "finish", then wait for the specified thread to finish. If flag is equal to "suspend" then just wait for the specified thread to be suspended.

If timeout is specified, then it indicates the maximum number of milliseconds to wait. If the timeout expires, the rest of the thread's script is aborted.

Add comment

Login or register to post comments