NevermoreEngine
NevermoreEngine copied to clipboard
feat: Added retry to PromiseUtils
Added retry to PromiseUtils
If you want a promise to be tried multiple times before it fails.
Shouldn’t this backoff or have some jitter too?
For my personal use case no. for other use-cases probably.
The only way I can think of adding it is task.Wait(waittimeBetwenRetries)
with waittimeBetwenRetries being a parameter in the retry function. I will make a commit with that added.
But there is probably a better way to do this.