RetryWrap any function in automatic retry logic | |
Download |
Retry Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Publisher Name:
- Toby Corkindale
- Publisher web site:
- http://search.cpan.org/~tjc/
Retry Tags
Retry Description
Wrap any function in automatic retry logic Retry is a Perl module that provides a method to wrap any function in automatic retry logic, with exponential back-off delays, and a callback for each time an attempt fails.Example: my $agent = Retry->new( failure_callback => sub { warn "oh dear, error: " . $_; }, ); eval { $agent->retry( sub { this_code_might_die(); } ); }; if ($@) { die "We totally failed!"; # Note that if we succeeded on a retry, this won't get called. } Requirements: · Perl
Retry Related Software