gpt4 book ai didi

ruby - 法拉第 : you may want to install system_timer for reliable timeouts

转载 作者:数据小太阳 更新时间:2023-10-29 06:44:24 30 4
gpt4 key购买 nike

我将一个旧脚本迁移到一个新的 CentOS box 并在运行脚本时收到以下消息:

Faraday: you may want to install system_timer for reliable timeouts

它是警告吗?system_timer 是什么? gem ?

最佳答案

这是一颗 gem 。

不过,您应该不再需要它了,因为它只支持 Ruby 1.8 及更早版本(Ruby 1.8 已正式弃用)。

来自 http://ph7spot.com/musings/system-timer :

Update: system_timer is only relevant if you are running Ruby 1.8. You do not need it if you are running Ruby 1.9, JRuby, Rubinius or MacRuby. Actually using system_timer with one of these Ruby interpreters would not even make any sense since, as explained in this article, system_timer is designed to workaround a fundamental limitation of the threading implementation in Ruby M.R.I. 1.8 (green threads). All other Ruby interpreters use native threads and timeout.rb should work as expected as long as the global interpreter lock is released.

关于ruby - 法拉第 : you may want to install system_timer for reliable timeouts,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15492968/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com