api

http4k / org.http4k.chaos / ChaosStages / Repeat

Repeat

fun Repeat(newStageFn: () -> Stage): Stage

Repeats a stage (or composite stage in repeating pattern). Since ChaosStages are STATEFUL, the stage function will be fired on each iteration and expecting a NEW instance.