Class: Rasti::Web::Broadcaster::Timer
- Inherits:
-
Object
- Object
- Rasti::Web::Broadcaster::Timer
- Defined in:
- lib/rasti/web/broadcaster/timer.rb
Class Method Summary collapse
Class Method Details
.every(interval, &block) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/rasti/web/broadcaster/timer.rb', line 7 def every(interval, &block) Thread.new do loop do execute_using_time_slot(interval, &block) end end end |