Lines Matching defs:timeout
5 # require 'timeout'
6 # status = Timeout::timeout(5) {
16 # #timeout is provided for backwards compatibility. You
17 # should prefer Timeout#timeout instead.
25 # Raised by Timeout#timeout when the block times out.
41 # value of 0 or +nil+ will execute the block without any timeout.
49 # Timeout</tt> into your classes so they have a #timeout method, as well as
50 # a module method, so you can call it directly as Timeout.timeout().
51 def timeout(sec, klass = nil) #:yield: +sec+
87 module_function :timeout
92 # Timeout::timeout(n, e, &block).
95 # You should use Timeout#timeout instead.
96 def timeout(n, e = nil, &block)
97 Timeout::timeout(n, e, &block)
101 # earlier versions of timeout.rb.