зеркало из https://github.com/github/ruby.git
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:
Родитель
e1c9e6244b
Коммит
d05d03b186
3
io.c
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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче