sequentialDelay

Creates a DelayStrategy that returns a list of delays in sequence. Once the list is exhausted, it will keep returning the last delay.

Return

A DelayStrategy that yields delays in sequence.

Since

1.0.0

Parameters

delays

List of sequential delays.


fun sequentialDelay(vararg delayMillis: Long): DelayStrategy

Creates a DelayStrategy that returns a list of delays in sequence, defined in milliseconds. Once the list is exhausted, it will keep returning the last delay.

Return

A DelayStrategy that yields delays in sequence.

Since

1.0.0

Parameters

delayMillis

Vararg of sequential delays in milliseconds.


A property extension that converts a list of Durations to a sequential DelayStrategy.

Since

1.0.0

See also