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

Any chance of making checkInterval more dynamic? #32

Open
prm-dan opened this issue Apr 1, 2020 · 1 comment
Open

Any chance of making checkInterval more dynamic? #32

prm-dan opened this issue Apr 1, 2020 · 1 comment

Comments

@prm-dan
Copy link

prm-dan commented Apr 1, 2020

This is a feature request. I'd like a way to configure this an exponential delay to this. E.g. first check after 20ms, then 40ms, then 80ms, etc.

@tagomoris
Copy link
Owner

That idea sounds acceptable. I'm ready to merge if someone creates a pull-request to support it.
The very rough way to implement it is:

  1. change the interval from a fixed value to a function to provide the interval (return a fixed value always at first)
  2. add an argument to specify the function generator for that interval (if not specified, use the fixed interval)

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

2 participants