Name : perl-Time-Out
| |
Version : 0.240.0
| Vendor : openSUSE
|
Release : 2.2
| Date : 2024-03-09 00:06:42
|
Group : Unspecified
| Source RPM : perl-Time-Out-0.240.0-2.2.src.rpm
|
Size : 0.03 MB
| |
Packager : https://bugs_opensuse_org
| |
Summary : Easily timeout long running operations
|
Description :
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 { };
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/openSUSE:/ALP:/Experimental:/Slowroll/base.20240901/repo/oss/noarch |