backon
backon copied to clipboard
feat: Allow to control the max sleep time of exponential backoff
Sometimes user want a max duration for exponential backoff instead of reaching the max times.
Hi, would you like to elaborate on this a bit? What is the difference between this and the ExponentialBuilder.with_max_delay(max_dur) API?
ExponentialBuilder.with_max_delay(max_dur)
The max_delay is the delay for each sleep, but this feature requires a total_delay so users can ensure that the retry won't exceed the total_delay.
Get it, let me take a look at this:)