Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add helper method for backoff #53

Open
cjrh opened this issue Dec 9, 2024 · 0 comments
Open

Add helper method for backoff #53

cjrh opened this issue Dec 9, 2024 · 0 comments

Comments

@cjrh
Copy link
Owner

cjrh commented Dec 9, 2024

For example, a backoff sequence could be produced like this:

        backoffs = itertools.chain(
            [0.1, 0.5, 1, 2, 5, 10], itertools.repeat(30, 100)
        )

This is a handy thing to have lying around. We could even consider making a retry handler, although that is probably out of scope for this package and should go into a different package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant