repeat

suspend fun repeat(times: Int, block: suspend TaskSequenceBuilder.(Int) -> Unit)

Repeats the block times.

Parameters

times

The number of times to repeat.

block

The block to execute, receiving the current iteration index.