NevermoreEngine icon indicating copy to clipboard operation
NevermoreEngine copied to clipboard

feat: Added retry to PromiseUtils

Open Boegie19 opened this issue 2 years ago • 2 comments

Added retry to PromiseUtils

If you want a promise to be tried multiple times before it fails.

Boegie19 avatar Nov 22 '21 19:11 Boegie19

Shouldn’t this backoff or have some jitter too?

Quenty avatar Nov 22 '21 22:11 Quenty

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.

Boegie19 avatar Nov 23 '21 10:11 Boegie19