Debian Codegraph @

README

raw
1 NAME
2
3 Time::Out - Easily timeout long running operations
4
5 EXAMPLE
6
7 use Time::Out qw( timeout );
8
9 # time out the following code block after 5 seconds
10 timeout 5 => sub {
11 # do something that might take a long time...
12 } ;
13 if ( $@ ){
14 # timeout occured...
15 }
16
17 INSTALLATION
18
19 To install this module, use your preferred CPAN client. If this is cpanm then
20 run the command
21
22 cpanm Time::Out
23
24 DOCUMENTATION
25
26 After the installation, you can find further documentation using the commands:
27
28 perldoc Time::Out
29
30 MAINTENANCE
31
32 To maintain this module, run the following commands:
33
34 cpanm --notest --with-configure --with-develop --no-man-pages --local-lib-contained local --installdeps .
35 perl Makefile.PL
36 make
37 make RELEASE_TESTING=1 test # use Test::Harness
38 make RELEASE_TESTING=1 testp # use TAP::Harness
39 make cover # coverage statistics in vim format
40
41 COPYRIGHT AND LICENSE
42
43 This software is copyright (c) 2005-2008 Patrick LeBoutillier, 2023 by Sven
44 Willenbuecher.
45
46 This is free software; you can redistribute it and/or modify it under the same
47 terms as the Perl 5 programming language system itself.