Right now I'm stuck with the API, I would like to have a function like this:
cyclicExponentialBackoff :: Int -> Int -> RetryPolicy
cyclicExponentialBackoff base cap = ...
That uses exponentialBackoff and once it reaches the cap it starts again from rsIterNumber = 0. Is there someway I could take advantage of the already implemented exponentialBackoff? Any pointers would help, thanks.
Right now I'm stuck with the API, I would like to have a function like this:
That uses
exponentialBackoffand once it reaches the cap it starts again from rsIterNumber = 0. Is there someway I could take advantage of the already implementedexponentialBackoff? Any pointers would help, thanks.