instance method
IO#nonblock?
io.nonblock? → boolean
ext/io/nonblock/nonblock.c
View on GitHub ↗
static VALUE
rb_io_nonblock_p(VALUE io)
{
if (get_fcntl_flags(rb_io_descriptor(io)) & O_NONBLOCK)
return Qtrue;
return Qfalse;
}
Returns true if an IO object is in non-blocking mode.
Ruby version changes
-
3.0
-
IO#nonblock?now defaults totrue. [Feature #16786]
-