Method wrappers around eventsauce/backoff, that retries callables actions thay may fail.
Via Composer
$ composer require nicoorfi/insist
insist_fibonnaci($actionThatMayFail,
100000, // initial delay in microseconds, 0.1 seconds
15, // max number of tries
2500000, // (optional) max delay in microseconds, default 2.5 seconds
);
insist_linear($actionThatMayFail,
100000, // initial delay in microseconds, 0.1 seconds
15, // max number of tries
2500000, // (optional) max delay in microseconds, default 2.5 seconds
);
Please see CHANGELOG for more information on what has changed recently.
The MIT License (MIT). Please see License File for more information.