Categories: None [Edit]
cadence
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.
Total
Ranking: 78,781 of 187,591
Downloads: 11,590
Daily
Ranking: 86,396 of 187,571
Downloads: 7
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|
Depends on
| Rank | Downloads | Name |
|---|
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | mtodd |