Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method · added in Ruby 4.0
Fiber::Scheduler#io_close
io_close(fd)
scheduler.c
View on GitHub ↗
VALUE
rb_fiber_scheduler_io_close(VALUE scheduler, VALUE io)
{
VALUE arguments[] = {io};
return rb_check_funcall(scheduler, id_io_close, 1, arguments);
}
Invoked by Ruby’s core methods to notify scheduler that the IO object is closed. Note that the method will receive an integer file descriptor of the closed object, not an object itself.
Ruby version changes
-
4.0
-
Reintroduce the
Fiber::Scheduler#io_closehook for asynchronousIO#close.
-