waitUntil

suspend fun waitUntil(checkInterval: Ticks = 1.ticks, condition: () -> Boolean)

Suspends the sequence until the condition is met.

Parameters

checkInterval

The interval between condition checks.

condition

The condition to check.