nicoorfi/insist

Method wrappers around eventsauce/backoff, that retries callables actions thay may fail.

Installs: 859

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/nicoorfi/insist

1.0.1 2022-03-08 08:28 UTC

This package is auto-updated.

Last update: 2025-10-08 15:59:10 UTC


README

Method wrappers around eventsauce/backoff, that retries callables actions thay may fail.

Install

Via Composer

$ composer require nicoorfi/insist

Usage

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
);

Change log

Please see CHANGELOG for more information on what has changed recently.

License

The MIT License (MIT). Please see License File for more information.