Flowdock
method

wait_to_finish_all_process_controllers

Importance_0
Ruby latest stable (v1_9_3_392) - 0 notes - Class: Shell::ProcessController
wait_to_finish_all_process_controllers() public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/shell/process-controller.rb, line 68
      def wait_to_finish_all_process_controllers
        process_controllers_exclusive do
          while !@ProcessControllers.empty?
            Shell::notify("Process finishing, but active shell exists",
                          "You can use Shell#transact or Shell#check_point for more safe execution.")
            if Shell.debug?
              for pc in @ProcessControllers.keys
                Shell::notify(" Not finished jobs in "+pc.shell.to_s)
                for com in pc.jobs
                  com.notify("  Jobs: %id")
                end
              end
            end
            @ProcessControllersCV.wait(@ProcessControllersMonitor)
          end
        end
      end
Register or log in to add new notes.