NAME
Sub::Spec::Clause::timeout - Limit subroutine execution
VERSION
version 0.12
SYNOPSIS
NOT IMPLEMENTED YET.
In your caller:
use Sub::Spec;
use MyModule qw(mysub);
# limit execution to 5 seconds
my $res = func(arg1=>val, arg2=>val, ..., -timeout => 5);
die "Function timed out"
if $res->[0] == 504;
SEE ALSO
AUTHOR
Steven Haryanto <stevenharyanto@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Steven Haryanto.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.