-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
Integrate fetch-retry #66
Comments
This was referenced Sep 27, 2018
Closed
I think that (async () => {
const frisbee = new Frisbee({
// ...
timeout: 10000, // 10 seconds
retry: 0 // 0 = infinite retries
});
// could also use `.timeout` and `.retry` methods to set on a per-request basis
const response = await frisbee.get('/').timeout(3000).retry(3);
}()); |
Sure, makes sense to use them together like that. Do I have it correct though that actually adding a timeout wouldn't require a retry package and it could be used without retries? |
Correct @kasbah, but in an ideal world we want to retry X number of times after Y number of timeout seconds per retry. |
cc @davidgovea |
Closing in favor of #92 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/jonbern/fetch-retry
The text was updated successfully, but these errors were encountered: