icanhazstring/retry
最新稳定版本:0.1.0
Composer 安装命令:
composer require icanhazstring/retry
包简介
Small dependency-less library to retry failing operations
README 文档
README
Small dependency-less library to retry failing operations
Installation
$ composer require icanhazstring/retry
Usage
// retry(callable, retries = 1, sleep = 10); // call failingMethod, maximum 3 retries, wait 100ms between retires retry(fn() => failingMethod(), 3, 100); retry(function() use ($dependency) { failingMethod(); }, 3, 100)
统计信息
- 总下载量: 1.95k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-06-25