spinWaitUntil

inline fun spinWaitUntil(condition: () -> Boolean)

Waits in the spin-loop until the given condition is true with periodical yielding to other threads.

Parameters

condition

A lambda function that determines the condition to wait for. The function should return true when the condition is satisfied, and false otherwise.