Skip to content

How to implement a cyclic exponential backoff #47

@steve-chavez

Description

@steve-chavez

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions