vadymmarkov / Malibu

:surfer: Malibu is a networking library built on promises
https://vadymmarkov.github.io
Other
414 stars 39 forks source link

Retry with backoff #86

Open OscarApeland opened 6 years ago

OscarApeland commented 6 years ago

A retry function (with backoff) would be neat. Something like -

retry(request: Promise<Request>, retryCap: Int = 5, retryInterval: TimeInterval = 0.5)

Or some other syntax if anyone else has any better ideas.

I'd be happy to implement this; @vadymmarkov is this within what you'd like Malibu to be?

vadymmarkov commented 6 years ago

Hi @OscarApeland! Yes, I think it would be a nice feature to have 😉

zenangst commented 6 years ago

Oh... that would be super nice! 👯‍♂️