Xojo.Threading.Thread.Sleep

From Xojo Documentation

Method

Xojo.Threading.Thread.Sleep(milliSeconds As Integer, wakeEarly As Boolean = False)

Supported for all project types and targets.

Puts the thread to sleep for the specified amount of milliSeconds, optionally allowing it to be woken early.

Notes

If wakeEarly is True, a thread may be woken before milliSeconds is reached if there are no other threads to run.

Sample Code

LongRunningThread.Sleep(300)

LongRunningThread.Sleep(1000, True)