Method: OpenC3::ThreadManager#monitor
- Defined in:
- lib/openc3/utilities/thread_manager.rb
#monitor ⇒ Object
49 50 51 52 53 54 55 56 57 58 |
# File 'lib/openc3/utilities/thread_manager.rb', line 49 def monitor while true @threads.each do |thread, _, _| if !thread.alive? return end end sleep(MONITOR_SLEEP_SECONDS) end end |