Download the PHP package sparkcentral/backoff without Composer
On this page you can find all versions of the php package sparkcentral/backoff. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download sparkcentral/backoff
More information about sparkcentral/backoff
Files in sparkcentral/backoff
Download sparkcentral/backoff
More information about sparkcentral/backoff
Files in sparkcentral/backoff
Vendor sparkcentral
Package backoff
Short Description Utility trait with retry (back off) functionality
License MIT
Package backoff
Short Description Utility trait with retry (back off) functionality
License MIT
Please rate this library. Is it a good library?
Informations about the package backoff
Backoff
Simple utility trait which provides backoff / retry functionality.
Features
- Two different strategies:
backoffOnException
,backoffOnCondition
- You can provide list of exception classes so that retry will happen only when one of those from the list is thrown.
- You can pass custom function to backoffOnCondition which defines whether to retry operation or not.
- Retries happen with delays which grow linearly (y=x*2), you can pass custom starting delay as well.
For details please refer to documentation for backoffOnException()
, backoffOnCondition()
methods.
Dependencies
- PHP >= 5.6 (variadics)
Basic example
Similarly you can use backoffOnCondition()
in case code you're trying to execute does not throw any exceptions, but (for instance) returns null
in case of failure.
All versions of backoff with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.6
The package sparkcentral/backoff contains the following files
Loading the files please wait ....