From d05d03b1866944e3d8f82d809b3370e7cf5e253e Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Sun, 2 Jun 2024 23:24:08 +0900 Subject: IO.select accepts a numeric value as timeout. [DOC] IO.select accepts a numeric value as timeout, not only an integer. --- io.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'io.c') diff --git a/io.c b/io.c index 9ef2892854..8acb1f562e 100644 --- a/io.c +++ b/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; -- cgit v1.2.3