spiderling-php/attempt
最新稳定版本:0.2.0
Composer 安装命令:
composer require spiderling-php/attempt
包简介
Retry something until it works
README 文档
README
Retry something until it works
Installation
Install via composer
composer require spiderling-php/attempt
Usage
$attempt = new Attempt(function () { return ... // Try to do something }); // Configure timeout and frequency of tries $attempt->setTimeout(3000); $attempt->setStep(50); // Check how many times it will try before timing out echo $attempt->getTries(); return $attempt->execute();
License
Copyright (c) 2015, Clippings Ltd. Developed by Ivan Kerin
Under BSD-3-Clause license, read LICENSE file.
统计信息
- 总下载量: 79
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2015-09-14