linearBackoffDelay

fun linearBackoffDelay(initialDelay: Duration, increment: Duration): DelayStrategy

Creates a DelayStrategy with a linearly increasing delay duration based on the given initial delay and increment.

Return

A DelayStrategy with linearly increasing delays.

Since

1.0.0

Parameters

initialDelay

The delay before the first retry.

increment

The amount added to the delay for each subsequent retry.