{"provider_name":"Hatena Blog","provider_url":"https://hatena.blog","height":"190","title":"Ruby 3.2 - IO / FileUtils","author_name":"tmtms","image_url":null,"blog_title":"tmtms \u306e\u30e1\u30e2","type":"rich","width":"100%","url":"https://blog.tmtms.net/entry/202212-ruby32-8","blog_url":"https://blog.tmtms.net/","version":"1.0","categories":["Ruby","Ruby3.2"],"published":"2022-12-08 00:00:00","author_url":"https://blog.hatena.ne.jp/tmtms/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.tmtms.net%2Fentry%2F202212-ruby32-8\" title=\"Ruby 3.2 - IO / FileUtils - tmtms \u306e\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"Ruby 3.2 \u30a2\u30c9\u30d9\u30f3\u30c8\u30ab\u30ec\u30f3\u30c0\u30fc\u306e8\u65e5\u76ee\u306e\u8a18\u4e8b\u3067\u3059\u3002 qiita.com IO IO#timeout \u8ffd\u52a0 Feature #18630: Introduce general IO#timeout and IO#timeout= for blocking operations. - Ruby master - Ruby Issue Tracking System IO#timeout \u3067\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u3092\u8a2d\u5b9a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002 $stdin.timeout = 1 gets #=> Blocking operation timed out! (IO::TimeoutError) r, w \u2026"}