Thread.SleepCurrent

From Xojo Documentation

Method

Thread.SleepCurrent(Milliseconds as Integer)

New in 2020r2

Supported for all project types and targets.

Sleeps the currently executing thread for the specified number of milliseconds.

Notes

If the currently executing thread is the main thread, it will sleep like any other thread would.