Thread.YieldToNext

From Xojo Documentation

Method

Thread.YieldToNext()

New in 2020r2

Supported for all project types and targets.

Causes the current thread to yield its time to the next thread.

Notes

This causes the Thread Scheduler to yield the currently executing thread's processing time to the next Thread in the queue that is awaiting processing cycles. It is possible for the next Thread to be the currently executing Thread.