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.
4 5 6 |
# File 'lib/legion/supervision.rb', line 4 def timer_tasks @timer_tasks end |
Class Method Details
.setup ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/legion/supervision.rb', line 6 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 |