coerceIn

open fun coerceIn(minimumValue: Duration, maximumValue: Duration): DelayStrategy

Ensures that the delay durations of this strategy are within the specified range.

Return

A new DelayStrategy representing the coerced delay durations.

Since

1.0.0

Parameters

minimumValue

The minimum duration value of the range.

maximumValue

The maximum duration value of the range.


Ensures that the delay durations of this strategy are within the specified duration range.

Return

A new DelayStrategy representing the coerced delay durations.

Since

1.0.0

Parameters

range

The duration range.