Skip to content

Instantly share code, notes, and snippets.

@BendingBender
Last active August 21, 2022 19:06
Show Gist options
  • Save BendingBender/3eb57c65bcba341919b6ae69bff00d41 to your computer and use it in GitHub Desktop.
Save BendingBender/3eb57c65bcba341919b6ae69bff00d41 to your computer and use it in GitHub Desktop.
import AsyncRetry from "async-retry";
AsyncRetry(() => "foo", { maxTimeout: 1, retries: 5 });
{
"name": "retry-test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"build": "tsc",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"async-retry": "^1.3.3"
},
"devDependencies": {
"@types/async-retry": "^1.4.5",
"typescript": "~4.7.4"
}
}
{
"compilerOptions": {
"target": "es2016",
"module": "commonjs",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true
}
}
@BendingBender
Copy link
Author

BendingBender commented Aug 19, 2022

To test, run

npm install && npm run build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment