Module: Rox::Core::PeriodicTask
- Defined in:
- lib/rox/core/utils/periodic_task.rb
Class Method Summary collapse
Class Method Details
.run(period) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/rox/core/utils/periodic_task.rb', line 4 def self.run(period) Thread.new do loop do sleep(period) yield end end end |