From: Geff Geff Date: 2006-09-18T01:05:40+09:00 Subject: Re: Nested threading? implications to timeout() Francis Cianfrocca wrote: > require 'timeout' > begin > timeout(2) { > timeout(4) { > sleep 6 > p "I finished" > } > } > rescue Timeout::Error > p "timeout fired" > end > > sleep 10 Ur very right. Thanks very much. Sorry I had a bad case of HUA. I read the timeout library code backwards, so to speak. As if the child thread (so to speak) was the actual code block, instead of just the sleep and the raise. Sorry for posting something I shouldn't have wasted your time with. Thanks for the patience and the help. Geff -- Posted via http://www.ruby-forum.com/.