Last 12 weeks · 0 commits
2 of 6 standards met
I know there's feature to bail out conditionally, but I think it would be useful to have a function that is called as soon as the operation fails, and the return value of that function should decide whether or not the next retry should happen. So would just become something like . Current alternative to this would be to have a try/catch in the function, decide in catch, throw if need to retry, and swallow and if needed. But this is a lot of boilerplate and can not be extracted into a separate function. While having a function in option would be much easier. Did it make sense?
Repository: vercel/async-retry. Description: Retrying made simple, easy and async Stars: 1919, Forks: 59. Primary language: JavaScript. Languages: JavaScript (93.3%), Dockerfile (6.7%). License: MIT. Homepage: https://npmjs.com/async-retry Topics: async, await, javascript, retry. Latest release: 1.3.3 (4y ago). Open PRs: 10, open issues: 20. Last activity: 3y ago. Community health: 50%. Top contributors: leo, rauchg, greenkeeperio-bot, leerob, lucleray, whitecrownclown, TooTallNate, yeldiRium, jfmengels, timstott and others.