Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Timeout::Error.handle_timeout
handle_timeout(message) { |exc| ... }
lib/timeout.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/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
No documentation available