igorw/retry
Composer 安装命令:
composer require igorw/retry
包简介
A tiny library for retrying failing operations.
关键字:
README 文档
README
A tiny library for retrying failing operations.
Since the network is reliable, things should always work. Am I right? For those cases when they don't, there is retry.
<? 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.
统计信息
- 总下载量: 382.45k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 543
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-09-19