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

Expose retryDelay so it can be user configured #75

Merged
merged 4 commits into from Jul 12, 2019

Conversation

@willvincent
Copy link
Contributor

willvincent commented Jul 2, 2019

The ability to auto-retry via axios-retry is great, but only having the default of no delay makes that less useful than it ought to be.

This PR exposes the ability for the user to define their desired retry delay by specifying it either as:

  • a number in milliseconds
  • the string 'exponential', which will use the built-in exponential backoff method
  • a callback function that returns the number of milliseconds to wait before the next retry
willvincent added 4 commits Jul 2, 2019
- Added retryDelay usage
- Better formatting of config options required/optional notes
@kndt84

This comment has been minimized.

Copy link
Owner

kndt84 commented Jul 12, 2019

It's a good update 😃

@kndt84 kndt84 merged commit 79be22e into kndt84:master Jul 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.