没有合适的资源?快使用搜索试试~ 我知道了~
proc-throttle:Proc#油门
共11个文件
rb:3个
rspec:1个
gemspec:1个
需积分: 5 0 下载量 49 浏览量
2021-04-29
09:58:36
上传
评论
收藏 5KB ZIP 举报
温馨提示
节气门 Proc#throttle:限制调用 安装 将此行添加到应用程序的Gemfile中: gem 'proc-throttle' 然后执行: $ bundle 或将其自己安装为: $ gem install proc-throttle 用法 count = 0 proc = Proc.new do count += 1 end.throttle(1) 10.times do proc.call end count // => 1 贡献 叉它 创建功能分支( git checkout -b my-new-feature ) 提交更改( git commit -am 'Added some feature' ) 推送到分支( git push origin my-new-feature ) 创建新的拉取请求
资源推荐
资源详情
资源评论
收起资源包目录
proc-throttle-master.zip (11个子文件)
proc-throttle-master
.gitignore 154B
README.md 733B
Gemfile 98B
proc-throttle.gemspec 700B
LICENSE 1KB
.rspec 26B
spec
spec_helper.rb 284B
throttle_spec.rb 1KB
.travis.yml 50B
lib
proc
throttle.rb 588B
Rakefile 219B
共 11 条
- 1
资源评论
生物医药从业者
- 粉丝: 17
- 资源: 4616
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功