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
similar to what's available in bluebird-retry
example usage:
Aigle.retry( { predicate: error => error.statesCode === 429 }, () => requestPromise.get(someUrl) )
or
Aigle.retry( { predicate: MyErrorClass }, myFunction )
The text was updated successfully, but these errors were encountered:
@adrian-gierakowski Thanks for the idea! It looks really useful. I could support a similar syntax as assert.throws or assert.rejects as well. ✍️ https://nodejs.org/api/assert.html#assert_assert_throws_fn_error_message
assert.throws
assert.rejects
Sorry, something went wrong.
@suguru03 nice idea with using assert interface. I might work on this tomorrow.
No branches or pull requests
similar to what's available in bluebird-retry
example usage:
or
The text was updated successfully, but these errors were encountered: