-
Notifications
You must be signed in to change notification settings - Fork 1
Time::Out - Easily timeout long running operations
License
patrickleboutillier/perl-Time-Out
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Time::Out - Easy timeouts
=========================
use Time::Out qw(timeout);
# Time out the following code block after 5 seconds
timeout 5 => sub {
# do something that might take a long time...
} ;
if ($@){
# timeout occured...
}
INSTALLATION
Note: Your system must support alarm(2).
To install this module type the following:
perl Makefile.PL
make
make test
make install
COPYRIGHT AND LICENCE
Copyright (C) 2005-2008 Patrick LeBoutillier
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
About
Time::Out - Easily timeout long running operations
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published