Method: MainLoop::Dispatcher#add_handler
- Defined in:
- lib/main_loop/dispatcher.rb
#add_handler(handler) ⇒ Object
37 38 39 40 41 42 |
# File 'lib/main_loop/dispatcher.rb', line 37 def add_handler(handler) synchronize do handler.term if terminating? handlers << handler end end |