EventSaucePHP / BackOff

Sophisticated back-off strategies for retrying operations.

Home Page:https://eventsauce.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Infinite number of retries

dam2k opened this issue · comments

Thanks for this cool library!
What about creating the possibility to have an infinite number of retries?
For ex. we could loop forever, with backoff timings, if maxTries is not >0 (a very simple hack I already done for myself):

if ($tries > $this->maxTries) {...
becomes
if ($this->maxTries>0 && $tries > $this->maxTries) {...

WDYT?

lemme see what I can do

@dam2k how about: #6

Thank you!