mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
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:
parent
e1c9e6244b
commit
d05d03b186
1 changed files with 2 additions and 1 deletions
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue