RubyGems Navigation menu

cadence 0.0.1

Track counts and compute rate of iteration. Set up callbacks for various intervals such as every n increments or every n ticks. computer = Cadence::Computer.new do |c| c.every 5 do p [:completed_processing, n] end end computer.start do |c| 1.upto(100) do |n| c.next # do magic here end end Mostly intended for providing intermitent feedback of the progress of tasks that will run for lengthy periods of time. Rudimentary support for time-based callbacks is possible through #ticks.

Gemfile:
= 複製 已複製

安裝:
=

版本列表:

  1. 0.0.2 - September 01, 2010 (4.5 KB)
  2. 0.0.1 - September 01, 2010 (4.5 KB)

擁有者:

作者:

  • Matt Todd

SHA 256 checksum:

30ca7787abbbf6729d79bf0e5c83434c482c7d73b7fc262fbb998ae8426a46f8

總下載次數 10,734

這個版本 4,362

License:

Ruby 版本需求:

相關連結: