[#1816] Ruby 1.5.3 under Tru64 (Alpha)? — Clemens Hintze <clemens.hintze@...>

Hi all,

17 messages 2000/03/14

[#1989] English Ruby/Gtk Tutorial? — schneik@...

18 messages 2000/03/17

[#2241] setter() for local variables — ts <decoux@...>

18 messages 2000/03/29

[ruby-talk:01775] Re: idiom for timeout?

From: Hugh Sasse Staff Elec Eng <hgs@...>
Date: 2000-03-07 10:05:00 UTC
List: ruby-talk #1775
On 6 Mar 2000, Dave Thomas wrote:

> You could use lib/timeout.rb:
> 
>    require 'timeout'
>    status = timeout(5) {
>      # something may take time
>    }

Thank you.  I will have to explore the libraries more thoroughly.
> 
   [my blathering about fork trimmed :-)]
> 
> It uses threads, which are more efficient, but the principle's the
> same.

I thought it might work something like that.
> 
> Regards
> 
> Dave
> 
	Thank you,
	Hugh
	hgs@dmu.ac.uk

In This Thread

Prev Next