async-retry
async-retry copied to clipboard
Retrying made simple, easy and async
similar to https://github.com/tim-kos/node-retry/pull/87 paves the way for ```html { "imports": { "retry": "https://cdn.jsdelivr.net/gh/brandonros/node-retry@mjs/index.mjs", "async-retry": "https://cdn.jsdelivr.net/gh/brandonros/async-retry@patch-1/lib/index.js" } } import retry from 'async-retry' ```
Are you interested in types? We made some for using your library and I can share them. I can make a pull request, otherwise I can try and toss it...
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.1 to 2.6.7. Release notes Sourced from node-fetch's releases. v2.6.7 Security patch release Recommended to upgrade, to not leak sensitive cookie and authentication header information to 3th...
I have this situation where I download the file, and want to delete this file (async operation) if the downloaded file is corrupted and needs retry. ```javascript return retry( async...
The documentation currently says this: > `onRetry`: an optional Function that is invoked after a new retry is performed. It's passed the Error that triggered it as a parameter. But...
From the example: ```js // Packages const retry = require('async-retry') const fetch = require('node-fetch') await retry(async bail => { // if anything throws, we retry const res = await fetch('https://google.com')...
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. Commits 7efb22a 1.2.6 ef88b93 security notice for additional prototype pollution issue c2b9819 isConstructorOrProto adapted from PR bc8ecee test from prototype pollution PR See full...
"dependencies": { "@azure/event-hubs": "^5.6.0", "@azure/eventgrid": "^4.5.0", "@azure/eventhubs-checkpointstore-blob": "^1.0.1", "@azure/storage-blob": "^12.8.0", "@hapi/joi": "^17.1.1", "@nestjs/common": "^8.2.6", "@nestjs/core": "^8.2.6", "@nestjs/mongoose": "^8.0.1", "@nestjs/platform-express": "^8.2.6", "@nestjs/swagger": "^5.2.0", "@sendgrid/client": "^7.4.2", "async-retry": "1.3.1", "axios": "^0.21.1", "azure-eventgrid": "^1.6.0",...
If you use `bail()` to force rejection of the promise, I noticed that if you also still rejected it (by throwing an error) the underlying retries still happened. This prevents...