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

Initial Delay does not seem to be respected #11

Open
Banashek opened this issue Oct 14, 2018 · 1 comment
Open

Initial Delay does not seem to be respected #11

Banashek opened this issue Oct 14, 2018 · 1 comment

Comments

@Banashek
Copy link

Running some tests, it seems as though setting initialDelay does not affect the initial start time for the delay.

Setting delay however will reduce the initial start delay.

@philidem
Copy link
Contributor

@Banashek the code is fairly straight-forward for handling initial delay. See https://github.com/lifeomic/attempt/blob/master/src/index.ts#L191

The only case when initialDelay is ignored is when you provide a calcualateDelay function via the options. If calcualateDelay is provided then the return value from the function will override all other default delay calculations.

Please provide examples of breaking test case (preferably in a pull request) if you can reproduce this problem.

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