crysalead/code
最新稳定版本:2.0.0
Composer 安装命令:
composer require crysalead/code
包简介
Runs callables with a timeout
关键字:
README 文档
README
API
Runs a callable until a timeout is reached:
declare(ticks = 1); Code::run(function(){ sleep(100); }, 10);
Runs a callable in loop until a timeout is reached and the return value is false:
// declare(ticks = 1); is optionnal when the callable is not blocking on spinning mode Code::spin(function(){ sleep(1); return false; }, 10);
统计信息
- 总下载量: 7.37k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-10-12