Method: Debugger::Xml::Ide::Interface#non_blocking_gets
- Defined in:
- lib/debugger/xml/ide/interface.rb
#non_blocking_gets ⇒ Object
Workaround for JRuby issue jira.codehaus.org/browse/JRUBY-2063
42 43 44 45 46 47 48 |
# File 'lib/debugger/xml/ide/interface.rb', line 42 def non_blocking_gets loop do result, _, _ = IO.select([@socket], nil, nil, 0.2) next unless result return result[0].gets end end |