vercel

async-retry

Retrying made simple, easy and async

by vercel

JavaScript

JavaScript93.3%
Dockerfile6.7%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

2 of 6 standards met

Community profile →
50
✓README✓License○Contributing○Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · 10 in progress · Last activity 3y ago
See all on GitHub →
fastfrwrd

I find myself doing this a lot when using async-retry: It would be awesome if there were a clean way to provide an option (?) that allowed you to say ("time out after the retry went for this long, regardless of the attempt number").

fastfrwrd · 3mo ago
salmanm

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?

salmanm · 3mo ago
Structured data for AI agents

Repository: vercel/async-retry. Description: Retrying made simple, easy and async Stars: 1918, 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 (5y 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.