Module: Voicemeeter::Worker
Instance Method Summary collapse
Methods included from Logging
Instance Method Details
#end_event_threads ⇒ Object
57 58 59 60 61 62 |
# File 'lib/voicemeeter/worker.rb', line 57 def end_event_threads if running? @running = false @producer.join end end |
#init_event_threads ⇒ Object
51 52 53 54 55 |
# File 'lib/voicemeeter/worker.rb', line 51 def init_event_threads que = Queue.new @running = true init_worker(que) and init_producer(que) end |
#running? ⇒ Boolean
47 48 49 |
# File 'lib/voicemeeter/worker.rb', line 47 def running? @producer&.alive? end |