-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
retry with a formulated delay #1938
Comments
@Andarist I think this could be done easily , if it sounds good to you , maybe I could made a PR |
Hey @sayjeyhi |
@carlosasj Good job |
Closing due to inactivity. If this is still an issue then please reply and I will reopen and try to help debug. Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It could be a good option to pass formulated delay parameter to retry effect.
I mean making delay between
call
based oncounter
.For this purpose , delay parameter could accept function , and pass counter as parameter , then user could return custom delays to every iterate.
simple use case , we want to retry on 1s , then 5s , 9s , 13s , .... , 1min , 1min and so on .
maybe this could handle conditions #1760 , and user could add conditions in this passed function and if return value is false , break the retry iteration
https://github.com/redux-saga/redux-saga/blob/master/packages/core/src/internal/sagaHelpers/retry.js#L4
The text was updated successfully, but these errors were encountered: