Constructor and Description |
---|
IOWaitLibrary() |
Modifier and Type | Method and Description |
---|---|
void |
load(Ruby runtime,
boolean wrap) |
static IRubyObject |
nread(ThreadContext context,
IRubyObject _io) |
static IRubyObject |
ready(ThreadContext context,
IRubyObject _io)
returns non-nil if input available without blocking, false if EOF or not open/readable, otherwise nil.
|
static IRubyObject |
wait_readable(ThreadContext context,
IRubyObject _io,
IRubyObject[] argv) |
static IRubyObject |
wait_writable(ThreadContext context,
IRubyObject _io,
IRubyObject[] argv)
waits until input available or timed out and returns self, or nil when EOF reached.
|
static IRubyObject |
wait(ThreadContext context,
IRubyObject _io,
IRubyObject[] argv) |
public static IRubyObject nread(ThreadContext context, IRubyObject _io)
public static IRubyObject ready(ThreadContext context, IRubyObject _io)
public static IRubyObject wait_readable(ThreadContext context, IRubyObject _io, IRubyObject[] argv)
public static IRubyObject wait_writable(ThreadContext context, IRubyObject _io, IRubyObject[] argv)
public static IRubyObject wait(ThreadContext context, IRubyObject _io, IRubyObject[] argv)
Copyright © 2001-2018 JRuby. All Rights Reserved.