Support for the Ruby 2.1 series ended on March 31 2017. See here for details.
RuntimeError
Raised by Timeout#timeout when the block times out.
# File timeout.rb, line 29 def self.catch(*args) exc = new(*args) exc.instance_variable_set(:@thread, Thread.current) exc.freeze ::Kernel.catch(exc) {yield exc} end
# File timeout.rb, line 36 def exception(*) if self.thread == Thread.current bt = caller begin throw(self, bt) rescue ArgumentError => e raise unless e.message.start_with?("uncaught throw") raise Error, message, backtrace end end self end
This page was generated for Ruby 2.1.7
Ruby-doc.org is provided by James Britt and Neurogami. Maximum R+D.
Generated with Ruby-doc Rdoc Generator 0.44.0.