Class: TCPSocket
- Inherits:
-
Object
- Object
- TCPSocket
- Defined in:
- lib/ruby-debug/interface.rb
Instance Method Summary collapse
-
#non_blocking_gets ⇒ Object
Workaround for JRuby issue jira.codehaus.org/browse/JRUBY-2063.
Instance Method Details
#non_blocking_gets ⇒ Object
Workaround for JRuby issue jira.codehaus.org/browse/JRUBY-2063
4 5 6 7 8 9 10 |
# File 'lib/ruby-debug/interface.rb', line 4 def non_blocking_gets loop do result, _, _ = IO.select( [self], nil, nil, 0.2 ) next unless result return result[0].gets end end |