customDelay
Configures the retry delay strategy to use a custom delay strategy.
Example:
customDelay { attempt, context ->
if (attempt % 2 == 0) 1.seconds
// additional state can be used from the context
else 3.seconds
}
Content copied to clipboard
Parameters
delayStrategy
the custom delay strategy to use.