класс Timeout::Error
Вызывается Timeout.timeout, когда блок отключается по истечении времени.
Публичные методы класса
# File lib/timeout.rb, line 37
def self.handle_timeout(message)
exc = ExitException.new(message)
begin
yield exc
rescue ExitException => e
raise new(message) if exc.equal?(e)
raise
end
end
Ruby Core © 1993–2022 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.