From: "Eregon (Benoit Daloze)" Date: 2022-11-15T12:31:03+00:00 Subject: [ruby-core:110763] [Ruby master Bug#18003] Rework internal IO to directly invoke scheduler with IO object. Issue #18003 has been updated by Eregon (Benoit Daloze). > `rb_io_wait_readable`, `rb_io_wait_writable` and `rb_wait_for_single_fd` are deprecated in favour of `rb_io_maybe_wait_readable`, `rb_io_maybe_wait_writable` and `rb_io_maybe_wait` respectively. `rb_thread_wait_fd` and `rb_thread_fd_writable` are deprecated. Why have these functions `maybe` in the name? That seems confusing. ---------------------------------------- Bug #18003: Rework internal IO to directly invoke scheduler with IO object. https://bugs.ruby-lang.org/issues/18003#change-100107 * Author: ioquatix (Samuel Williams) * Status: Closed * Priority: Normal * Assignee: ioquatix (Samuel Williams) ---------------------------------------- Many functions are still going through C functions which take file descriptors fd argument, and internally we need to create an IO object to handle this correctly in the fiber scheduler. This is slightly inefficient, so we should rework these code paths to use the updated interfaces which handle IO instances directly. -- https://bugs.ruby-lang.org/ Unsubscribe: