# File lib/net/sftp/session.rb, line 799 def loop(&block) block ||= Proc.new { pending_requests.any? } session.loop(&block) end