lib/main_loop/handler.rb in main_loop-0.1.2.16854 vs lib/main_loop/handler.rb in main_loop-0.1.3.16874

- old
+ new

@@ -48,9 +48,13 @@ def publish(event) dispatcher.bus.puts(event) end # :nocov: + def on_term &block + @on_term = block + end + # :nocov: def finished? @finished end # :nocov: