proc-throttle:Proc#油门

时间:2021-04-29 09:58:36
【文件属性】:
文件名称:proc-throttle:Proc#油门
文件大小:5KB
文件格式:ZIP
更新时间:2021-04-29 09:58:36
Ruby 节气门 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
----.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()
----Rakefile(219B)

网友评论