Class: BarThreadLoop
- Inherits:
-
Archfiend::ThreadLoop
- Object
- Archfiend::ThreadLoop
- BarThreadLoop
- Defined in:
- lib/archfiend/generators/daemon/templates/app/thread_loops/bar_thread_loop.rb
Overview
A dummy thread loop that logs Hello World every 5 seconds
Constant Summary
Constants inherited from Archfiend::ThreadLoop
Archfiend::ThreadLoop::EXCEPTION_DELAY
Instance Attribute Summary
Attributes inherited from Archfiend::ThreadLoop
Instance Method Summary collapse
Methods inherited from Archfiend::ThreadLoop
Methods included from Archfiend::SharedLoop::Runnable
Instance Method Details
#iterate ⇒ Object
3 4 5 6 7 |
# File 'lib/archfiend/generators/daemon/templates/app/thread_loops/bar_thread_loop.rb', line 3 def iterate msg = "Hello World from #{self.class.name}" logger.info(msg) sleep 5 end |