Documentation for method yield assembled from the following pages:

Class: Thread §

From Thread

(Thread) method yield §

method yield(Thread:U:)

Tells the scheduler to prefer another thread for now.

Thread.yield;