constantDelay

Creates a DelayStrategy that always returns the same delay duration.

Return

A DelayStrategy that always yields the same delay.

Since

1.0.0

Parameters

delay

The constant delay duration.


fun constantDelay(delayMillis: Long): DelayStrategy

Creates a DelayStrategy that always returns the same delay duration.

Return

A DelayStrategy that always yields the same delay.

Since

1.0.0

Parameters

delayMillis

The constant delay duration in milliseconds.


A property extension that converts the Duration to a DelayStrategy with a constant delay.

Since

1.0.0

See also