RubyGems Navigation menu

cadence 0.0.2

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.5KB)
  2. 0.0.1 - September 01, 2010 (4.5KB)

所有者:

作者:

  • Matt Todd

SHA 256チェックサム:

b057ea39869ac71a473f67d6b49040c957b6c497545684dcaa8df13065d84411

累計ダウンロード数 10,722

このバージョンのみ 6,365

ライセンス:

N/A

必要なRubyのバージョン: なし

リンク: