January 2013 Archives

New Perl module: Action::Retry

cross-posted from dams blog

New Perl module: Action::Retry

I've just released a new module called Action::Retry.

Use it when you want to run some code until it succeeds, waiting between two retries.

A simple way to use it is :

use Action::Retry qw(retry);
retry { ... };

And the Object Oriented API:

Action::Retry->new( attempt_code => sub { ... } )->run();

About Damien "dams" Krotkine

user-pic I blog about Perl.