Package org.jruby.ext.io.wait
Class IOWaitLibrary
java.lang.Object
org.jruby.ext.io.wait.IOWaitLibrary
- All Implemented Interfaces:
Library
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static IRubyObjectdoWait(ThreadContext context, RubyIO io, OpenFile fptr, long tv, int ops) voidstatic IRubyObjectnread(ThreadContext context, IRubyObject _io) private static longprepareTimeout(ThreadContext context, IRubyObject[] argv) static IRubyObjectready(ThreadContext context, IRubyObject _io) returns non-nil if input available without blocking, false if EOF or not open/readable, otherwise nil.static IRubyObjectwait(ThreadContext context, IRubyObject _io, IRubyObject[] argv) static IRubyObjectwait_readable(ThreadContext context, IRubyObject _io, IRubyObject[] argv) static IRubyObjectwait_writable(ThreadContext context, IRubyObject _io, IRubyObject[] argv) waits until input available or timed out and returns self, or nil when EOF reached.
-
Constructor Details
-
IOWaitLibrary
public IOWaitLibrary()
-
-
Method Details
-
load
-
nread
-
ready
returns non-nil if input available without blocking, false if EOF or not open/readable, otherwise nil. -
wait_readable
-
wait_writable
waits until input available or timed out and returns self, or nil when EOF reached. -
wait
-
doWait
private static IRubyObject doWait(ThreadContext context, RubyIO io, OpenFile fptr, long tv, int ops) -
prepareTimeout
-