--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: "The main event loop. Calls #process until #process returns false. If a block is given, it is passed to #process, otherwise a default proc is used that just returns true if there are any channels active (see #busy?). The # <tt>wait</tt> parameter is also passed through to #process (where it is interpreted as the maximum number of seconds to wait for IO.select to return)."
- !ruby/struct:SM::Flow::VERB 
  body: "  # loop for as long as there are any channels active\n  ssh.loop\n\n  # loop for as long as there are any channels active, but make sure\n  # the event loop runs at least once per 0.1 second\n  ssh.loop(0.1)\n\n  # loop until ctrl-C is pressed\n  int_pressed = false\n  trap(&quot;INT&quot;) { int_pressed = true }\n  ssh.loop(0.1) { not int_pressed }\n"
full_name: Net::SSH::Connection::Session#loop
is_singleton: false
name: loop
params: (wait=nil, &block)
visibility: public
