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

Conditional retry #3

Closed
wants to merge 3 commits into from
Closed

Conversation

ahsanz024
Copy link
Contributor

@ahsanz024 ahsanz024 commented Nov 25, 2018

Adding the functionality to cancel retry if the condition fails.
For e.g. if the server responds with 401, we don't want to retry. Hence rejects immediately, otherwise continues to retry.
@mrloop

@mrloop
Copy link
Owner

mrloop commented Nov 27, 2018

🚀 thanks for the PR! will review soon.

@mrloop
Copy link
Owner

mrloop commented Dec 1, 2018

@ahsanz024 I've added some improvements in https://github.com/mrloop/ember-retry/commits/conditional_retry. Let me know what you think, in particular do the tests still cover you use case?

@ahsanz024
Copy link
Contributor Author

@mrloop Yeah looks good to me 👍

@mrloop
Copy link
Owner

mrloop commented Dec 12, 2018

Will merge as part of #4, closing this PR

@mrloop mrloop closed this Dec 12, 2018
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

Successfully merging this pull request may close these issues.

None yet

2 participants