Actions
Feature #18655
closedCopy `IO#wait_readable`, `IO#wait_writable`, `IO#wait_priority` and `IO#wait` into core.
Feature #18655:
Copy `IO#wait_readable`, `IO#wait_writable`, `IO#wait_priority` and `IO#wait` into core.
Status:
Closed
Assignee:
-
Target version:
-
Description
Extracted from [Feature #18566].
The decision was made to consider the methods from io-wait and io-nonblock one by one.
I think wait_readable and wait_writeable should be fairly non-controversial. They're quite essential to use IO#read_nonblock and IO#write_nonblock effectively.
Proposed patch: https://github.com/ruby/ruby/pull/5694
NB: if we only merge some methods, then io/wait must test which methods it needs to define or not. For now I use a if RUBY_VERSION >= "3.2" check in extconf.rb, but there might be a better approach.
Actions