bluefrg/retry
最新稳定版本:2.0.0
Composer 安装命令:
composer require bluefrg/retry
包简介
A simple PHP function used to retry failed operations.
README 文档
README
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.
<?php // retry an operation up to 3 times $oUsr = Bluefrg/retry(3, function () use ($iId) { return User::find($iId); });
Install
$ composer require bluefrg/retry
统计信息
- 总下载量: 6.72k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-10-21