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

check Promise reject types to adjust handling behavior #46

Open
gwynethsc opened this issue Jun 18, 2020 · 0 comments
Open

check Promise reject types to adjust handling behavior #46

gwynethsc opened this issue Jun 18, 2020 · 0 comments

Comments

@gwynethsc
Copy link
Owner

This is good for this PR, but a slightly more sophisticated approach would be to check what type of error you're getting. If you know it's the intermittent kind, you could do the backoff, whereas if you know it's something that's never going to work no matter how many times you try, you could just stop.

Originally posted by @sperzion in #44

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

1 participant