library retry
A simple PHP function used to retry failed operations.
bluefrg/retry
A simple PHP function used to retry failed operations.
- Thursday, October 27, 2016
- by bluefrg
- Repository
- 1 Watchers
- 0 Stars
- 2,448 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 11 % Grown
Retry
A simple PHP function used to retry failed operations. Based on the work done by igorw.
On a complete failure, the original exception will be thrown back rather than igorw's FailingTooHardException., (*1)
<?php
// retry an operation up to 3 times
$oUsr = Bluefrg/retry(3, function () use ($iId) {
return User::find($iId);
});
Install
$ composer require bluefrg/retry
dev-master
9999999-dev
A simple PHP function used to retry failed operations.
Sources
Download
MIT
The Requires
The Development Requires
1.0.0
1.0.0.0
A simple PHP function used to retry failed operations.
Sources
Download
MIT
The Requires
The Development Requires