IO.select accepts a numeric value as timeout.

[DOC] IO.select accepts a numeric value as timeout, not only an integer.
This commit is contained in:
Tanaka Akira 2024-06-02 23:24:08 +09:00
parent e1c9e6244b
commit d05d03b186

3
io.c
View File

@ -10890,7 +10890,8 @@ rb_io_advise(int argc, VALUE *argv, VALUE io)
* Each of the arguments +read_ios+, +write_ios+, and +error_ios+
* is an array of IO objects.
*
* Argument +timeout+ is an integer timeout interval in seconds.
* Argument +timeout+ is a numeric value (such as integer or float) timeout
* interval in seconds.
*
* The method monitors the \IO objects given in all three arrays,
* waiting for some to be ready;