Method: Vedeu::Runtime::Application#run_many

Defined in:
lib/vedeu/runtime/application.rb

#run_manyvoid (private)

This method returns an undefined value.

Runs the application in a continuous loop. This loop is stopped when an uncaught exception occurs or when either the ‘:mode_switch` or `:exit` event is triggered.



119
120
121
122
123
124
125
126
127
128
# File 'lib/vedeu/runtime/application.rb', line 119

def run_many
  Vedeu::Runtime::MainLoop.start! { yield }

rescue Vedeu::Error::ModeSwitch
  Vedeu::Terminal.switch_mode!

  Vedeu.trigger(:_drb_restart_)

  Vedeu::Runtime::Application.restart(configuration)
end