AnyEvent-RetryTimer
view release on metacpan or search on metacpan
mechanism (with configurable multiplier) using AnyEvent timers. If there
are other back off strategies you find useful you are free to send a
feature request or even better a patch!
METHODS
my $timer = AnyEvent::RetryTimer->new (%args)
This is the constructor, it constructs the object.
At the end of the objects lifetime, when you get rid of the last
reference to $timer, it will stop and running timeouts and not call
any of the configured callbacks again.
%args can contain these keys:
on_retry => $retry_cb->($timer)
$retry_cb is the callback that will be called for (re)tries.
When this constructor is called and no "no_first_try" is given,
an initial retry interval of the length 0 is started, which
counts as the first try.
lib/AnyEvent/RetryTimer.pm view on Meta::CPAN
=head1 METHODS
=over 4
=item my $timer = AnyEvent::RetryTimer->new (%args)
This is the constructor, it constructs the object.
At the end of the objects lifetime, when you get rid of the last reference to
C<$timer>, it will stop and running timeouts and not call any of the configured
callbacks again.
C<%args> can contain these keys:
=over 4
=item on_retry => $retry_cb->($timer)
C<$retry_cb> is the callback that will be called for (re)tries.
When this constructor is called and no C<no_first_try> is given,
( run in 0.659 second using v1.01-cache-2.11-cpan-9b1e4054eb1 )