PHP code example of avtonom / delay-exponential-backoff-bundle
1. Go to this page and download the library: Download avtonom/delay-exponential-backoff-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
avtonom / delay-exponential-backoff-bundle example snippets
$ php bin/console exponential-backoff
$ php bin/console exponential-backoff halfDelay -l 20
$bundles(
...
new Avtonom\ExponentialBackoffBundle\AvtonomExponentialBackoffBundle(),
...
);
$attempt++;
usleep($this->('avtonom_exponential_backoff')->equalJitter($attempt));