Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>

WEEK'S BEST

  • BackTrack 5 R1
  • Wine 1.2.3 / 1.4 RC3
  • Mozilla Firefox 10...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.3 LTS
  • Linux Kernel 3.2.6
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.1
  • Home > Linux > Programming > Perl Modules

    Retry 0.12

    Download button

    No screenshots available
    Downloads: 111  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Toby Corkindale | More programs
    Perl Artistic License / FREE
    May 11th, 2011, 13:12 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    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: " . $_[0]; },
     );
     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.
     }



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    automatic retry | Perl module | automatic | retry | logic



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM