Ruby Timeout::timeout doesn't fire Exception and doesn't return what documented
问题 i have this piece of code: begin complete_results = Timeout.timeout(4) do results = platform.search(artist, album_name) end rescue Timeout::Error puts 'Print me something please' end I then launch the method containing this code, and well, here is the beginning of a stack trace: Exception message : execution expired Exception backtrace : /***/****/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/timeout.rb:64:i So i naively thinks that my call timeouted. But 'Print me something please' is never