instance method · added in Ruby 3.2
Fiber::Scheduler#io_select
io_select(readables, writables, exceptables, timeout)
scheduler.c
View on GitHub ↗
VALUE rb_fiber_scheduler_io_select(VALUE scheduler, VALUE readables, VALUE writables, VALUE exceptables, VALUE timeout)
{
VALUE arguments[] = {
readables, writables, exceptables, timeout
};
return rb_fiber_scheduler_io_selectv(scheduler, 4, arguments);
}
Invoked by IO.select to ask whether the specified descriptors are ready for specified events within the specified timeout.
Expected to return the 3-tuple of Array of IOs that are ready.
Ruby version changes
-
3.2
-
Introduce
Fiber::Scheduler#io_selectfor non-blockingIO.select. [Feature #19060]
-