vadymmarkov / Malibu

:surfer: Malibu is a networking library built on promises

Home Page:https://vadymmarkov.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Retry with backoff

OscarApeland opened this issue · comments

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?

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

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