getDelay

abstract fun getDelay(maxRetries: Int, remainingRetries: Int): Duration

Gets a delay based on the max retries and remaining retries

Return

new delay as a Duration object

Parameters

maxRetries

maximum amount of available retries

remainingRetries

remaining number of retries available