sodiray / radash

Functional utility library - modern, simple, typed, powerful
https://radash-docs.vercel.app
MIT License
4.1k stars 160 forks source link

[Async] Allow onRetry option for retry #403

Open gperdomor opened 3 months ago

gperdomor commented 3 months ago

Context: Currently the retry function allows to repeat some function several times while fails until max retries is reached, without provide a way to know how many time was executed

Expected: Should be usseful to know how many time the function fails or was executed... for example the async-retry package as an option to pass a onRetry callback which is executed on retries...

aleclarson commented 3 weeks ago

Hi @gperdomor, would you be interested in contributing this to the Radashi fork?