From: Heesob Park Date: 2009-06-30T11:46:21+09:00 Subject: Re: Cannot find in documentation anymore what tl is in Timeout::timeout(to) do |tl| 2009/6/30 Xeno Campanoli : >  begin >        Timeout::timeout(OverallTimeout) do |tl| >            # Until I find out what this is, Forget it... >            # No doc on tl anymore! >            #puts "tl:  #{tl}" >            probe_threads.each { |t|  t.join } >            puts "done" >        end >    rescue Timeout::Error => eo >        puts "#{eo.message}, exiting before joining all probe threads." >    end > > Can anyone help?  Is it deprecated perhaps? > According to the document[1], tl is same to OverallTimeout. BTW, I noticed the 1.8.6 document[2] is wrong in block parameter. timeout(sec, exception=Error) {|if sec == nil or sec.zero?| ...} I guess it is related to the bug in the source code of 1.8.6 and 1.8.7 The first line of method timeout return yield if sec == nil or sec.zero? should be return yield(sec) if sec == nil or sec.zero? [1] http://ruby-doc.org/core-1.9/classes/Timeout.html#M006441 [2] http://ruby-doc.org/stdlib/libdoc/timeout/rdoc/classes/Timeout.html#M004621 Regards, Park Heesob