The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Perinci::Sub::Property::timeout - Specify function execution time limit

VERSION

This document describes version 0.08 of Perinci::Sub::Property::timeout (from Perl distribution Perinci-Sub-Property-timeout), released on 2016-05-11.

SYNOPSIS

 # in function metadata
 timeout => 5,

DESCRIPTION

This property specifies function execution time limit, in seconds. The default is 0, which means unlimited.

This property's wrapper implementation uses alarm() (ualarm() replacement, for subsecond granularity, will be considered upon demand). If limit is reached, a 504 (timeout) status is returned.

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/Perinci-Sub-Property-timeout.

SOURCE

Source repository is at https://github.com/perlancar/perl-Perinci-Sub-Property-timeout.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Perinci-Sub-Property-timeout

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

SEE ALSO

Perinci

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by perlancar@cpan.org.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.