M
Mathspeedy
Hi !
I think the title says it all,
I would like to see some timer examples,
just for fun =D
I think the title says it all,
I would like to see some timer examples,
just for fun =D
I think the title says it all,
I would like to see some timer examples,
There's a Timeout method I use that has been superior to anything I could findBertram said:Hi,
Am Mittwoch, 22. Jul 2009, 07:25:14 +0900 schrieb Mathspeedy:
I examined the whole interpreter source code and could not find
any way to call alarm() or setitimer() by Ruby methods. I really
miss that!
Bertram
begin
Timeout::timeout(OverallTimeout) do |tl|
# Until I find out what this is, Screw it!
# No doc on tl anymore!
#puts "tl: #{tl}"
probe_threads.each { |t| t.join }
puts "All probe threads collected."
end
rescue Timeout::Error => eo
puts "#{eo.message}, exiting before joining all probe threads."
end
Hi !
I think the title says it all,
I would like to see some timer examples,
just for fun =D
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.