NAME
PerlIO::via::Timeout::Strategy::Alarm - a PerlIO::via::Timeout strategy that uses Time::Out (based on alarm)
VERSION
version 0.21
SYNOPSIS
use Time::HiRes;
use PerlIO::via::Timeout qw(timeout_strategy);
binmode($fh, ':via(Timeout)');
timeout_strategy($fh, 'Alarm', read_timeout => 0.5);
DESCRIPTION
This class implements a timeout strategy to be used by PerlIO::via::Timeout. It inherits PerlIO::via::Timeout::Strategy.
Timeout is implemented using the Time::Out, which uses the alarm
core function, but with a safe harness.
UNDER THE SECOND TIMEOUTS
Warning, if you need timeout at a precision finer than the second, you need to use Time::HiRes.
CONSTRUCTOR
See PerlIO::via::Timeout::Strategy.
METHODS
See PerlIO::via::Timeout::Strategy.
COMPATIBILITY
Doesn't work on Windows
SEE ALSO
AUTHOR
Damien "dams" Krotkine
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by Damien "dams" Krotkine.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.