[Catalyst] timeouts

Nilson Santos Figueiredo Junior acid06 at gmail.com
Fri Apr 14 15:57:51 CEST 2006


On 4/14/06, Yuval Kogman <nothingmuch at woobling.org> wrote:
> Perhaps you should really make it into something like do_txn, that
> takes a sub and executes it in this timed out eval, so that you
> have:
>
>         my $value = $self->with_timeout( 10, sub {
>                 ....
>         });
>

Remember that alarm() isn't safe under Win32 (as almost anything else
regarding signals). Actually, the last time I tried, it didn't even
work.

-Nilson Santos F. Jr.



More information about the Catalyst mailing list