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
Родитель e1c9e6244b
Коммит d05d03b186
1 изменённых файлов: 2 добавлений и 1 удалений

3
io.c
Просмотреть файл

@ -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;