Source Package: perl-Time-Out (1.0.0-1.6)
Easily timeout long running operations
The 'Time::Out' module provides an easy interface to alarm(2) based timeouts. Nested timeouts are supported. The module exports the 'timeout()' function by default. The function returns whatever the code placed inside the subroutine reference returns: use Time::Out qw( timeout ); my $result = timeout 5 => sub { return 7; }; If 'Time::Out' sees that Time::HiRes has been loaded, it will use that 'alarm()' function (if available) instead of the default one, allowing float timeout values to be used effectively: use Time::HiRes qw(); use Time::Out qw( timeout ); timeout 3.1416 => sub { };
Package information
- Homepage
- [https://metacpan.org/release/Time-Out]
- License
- Artistic-1.0 OR GPL-1.0-or-later
- Mainteneur du paquet aval
- Inconnu : non déclaré dans la source indexée
The following binary packages are built from this source package:
- perl-Time-Out
Easily timeout long running operations
