repeatWhile

suspend fun repeatWhile(condition: () -> Boolean, block: suspend TaskSequenceBuilder.() -> Unit)

Repeats the block while condition is true.

Parameters

condition

The condition to check.

block

The block to execute.