We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi and thanks for your work
That would be great if a custom filter could be implemeted to perform the retry or not
A gentle way to replace something like this :
db.query("SELECT *...").then(() => { console.log("OK"); }).catch(error => { if (error == "ECONNREFUSED") retry(() => db.query("SELECT *..."), {timeout: 5000}).then(() => { console.log("OK"); }); });
By something like this :
retry(() => db.query("SELECT *..."), {filter: (error) => { return (error == "ECONNREFUSED"); }, timeout: 5000}) .then(() => { console.log("OK"); })
The text was updated successfully, but these errors were encountered:
Would the predicate option in the retryOptions object suit your needs?
predicate
Sorry, something went wrong.
No branches or pull requests
Hi and thanks for your work
That would be great if a custom filter could be implemeted to perform the retry or not
A gentle way to replace something like this :
By something like this :
The text was updated successfully, but these errors were encountered: