lib/em-ssh/session.rb
# Override the default, blocking behavior of Net::SSH.
# Callers to loop will still wait, but not block the loop.
Override the default, blocking behavior of Net::SSH.
Callers to loop will still wait, but not block the loop.
Override the default blocking behavior of Net :: SSH . Callers to loop will still wait but not block the loop .
def loop(wait=nil, &block)
        f = Fiber.current
        l = proc do
          block.call ? EM.next_tick(&l) : f.resume
        end
        EM.next_tick(&l)
        return Fiber.yield
      end
def loop ( wait = nil , & block ) f = Fiber . current l = proc do block . call ? EM . next_tick ( & l ) : f . resume end EM . next_tick ( & l ) return Fiber . yield end
Override the default, blocking behavior of Net::SSH.
Override the default blocking behavior of Net :: SSH .
wait
<not_specific>
block
<not_specific>