The library for repeatable and retryable operations
PHP
Failed to load latest commit information.
src/Retry
tests
.gitignore
.travis.yml
README.md
composer.json
phpunit.xml.dist

README.md

Batch

The library for repeatable and retryable operations.

Build Status

Here is a simple example:

<?php

use Retry\RetryProxy;
use Retry\Policy\SimpleRetryPolicy;
use Retry\BackOff\ExponentialBackOffPolicy;

$retryPolicy = new SimpleRetryPolicy(3);
$backOffPolicy = new ExponentialBackOffPolicy();

$proxy = new RetryProxy($retryPolicy, $backOffPolicy);
$result = $proxy->call(function() {
    // call external service and return result
});