library retry
A tiny library for retrying failing operations. [fork with tags]
schmunk42/retry
A tiny library for retrying failing operations. [fork with tags]
- Tuesday, April 21, 2015
- by schmunk
- Repository
- 1 Watchers
- 1 Stars
- 45,710 Installations
- PHP
- 2 Dependents
- 0 Suggesters
- 28 Forks
- 0 Open issues
- 5 Versions
- 9 % Grown
retry
A tiny library for retrying failing operations., (*1)
Since the network is reliable, things should always work. Am I right? For those cases when they don't, there is retry., (*2)
use function igorw\retry;
// retry an operation up to 5 times
$user = retry(5, function () use ($id) {
return User::find($id);
});
// here is why you want to start using HHVM
$user = retry(5, () ==> User::find($id));
// this is probably a bad idea
$user = retry(INF, () ==> {
throw new RuntimeException('never gonna give you up');
});
?>
I know. You're welcome., (*3)
dev-master
9999999-dev
A tiny library for retrying failing operations. [fork with tags]
Sources
Download
MIT
The Requires
The Development Requires
failure
dev-on-error
dev-on-error
A tiny library for retrying failing operations.
Sources
Download
MIT
The Requires
The Development Requires
failure
0.0.1
0.0.1.0
A tiny library for retrying failing operations.
Sources
Download
MIT
The Requires
The Development Requires
failure
dev-result-structure
dev-result-structure
A tiny library for retrying failing operations.
Sources
Download
MIT
The Requires
The Development Requires
failure
dev-collect-exceptions
dev-collect-exceptions
A tiny library for retrying failing operations.
Sources
Download
MIT
The Requires
The Development Requires
failure