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

Support retries for NetworkErrors #32

Open
tsantef opened this issue Oct 10, 2016 · 0 comments
Open

Support retries for NetworkErrors #32

tsantef opened this issue Oct 10, 2016 · 0 comments

Comments

@tsantef
Copy link
Member

tsantef commented Oct 10, 2016

Now that the NetworkError error type is implemented in v4 It would be nice to add a retry adaptor using the https://www.npmjs.com/package/backoff library or similar. It would be configured by passing in a retry option object in the constructor. Defaults to off. The options could include an array of errors types to retry on (defaults to [NetworkError]), initial delay, and max delay.

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

No branches or pull requests

1 participant