Thread.Sleep

From Xojo Documentation

Method

Thread.Sleep(MilliSeconds As Integer, [WakeEarly As Boolean=False])

New in 2005r1

Supported for all project types and targets.

Puts the thread to sleep for the specified amount of time.

Notes

By default, WakeEarly is False. If it is not set to True, the thread will be put to sleep for the full amount of time specified by MilliSeconds. If you set WakeEarly to True, the thread can be resumed early. It will wake up early if there are no other threads able to execute.

Example

LongProcessThread1.Sleep(300, True)