vercel / async-retry

Retrying made simple, easy and async

Home Page:https://npmjs.com/async-retry

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add ability to override the delay for a particular failed invocation

cdhowie opened this issue · comments

It would be nice to allow the called function to override the amount of time to delay between invocations, for the next invocation only. The rationale for this request is that some REST APIs will return a retry-after header for some calls indicating how long one should wait before retrying the request. There is currently no way to communicate that directive to this module.