Module: Legion::Supervision
- Defined in:
- lib/legion/supervision.rb
Class Attribute Summary collapse
-
.timer_tasks ⇒ Object
Returns the value of attribute timer_tasks.
Class Method Summary collapse
Class Attribute Details
.timer_tasks ⇒ Object
Returns the value of attribute timer_tasks.
6 7 8 |
# File 'lib/legion/supervision.rb', line 6 def timer_tasks @timer_tasks end |
Class Method Details
.setup ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/legion/supervision.rb', line 8 def setup @timer_tasks = Concurrent::AtomicReference.new([]) @once_tasks = Concurrent::AtomicReference.new([]) @loop_tasks = Concurrent::AtomicReference.new([]) @poll_tasks = Concurrent::AtomicReference.new([]) @subscriptions = Concurrent::AtomicReference.new([]) end |