waitUntil

abstract suspend fun waitUntil(condition: () -> Boolean)

Suspends until condition returns true, checking once per loop iteration.