LoginSignup
1
0

More than 5 years have passed since last update.

Object#timeout is deprecated, use Timeout.timeout instead.

Posted at

自分用メモ

ruby のバージョン違いで環境変えたらエラーが出た。

エラー文

Object#timeout is deprecated, use Timeout.timeout instead.

というエラーが出た場合の対処

Timeout(0.05)

などは

Timeout.timeout(0.05)

に、書き換える。

ついでに

TimeoutError

Timeout::Error

に書き換える

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0