Steven Haryanto > Perinci-Sub-Property-retry-0.06 > lib/Perinci/Sub/Property/retry.pm~

Download:
Perinci-Sub-Property-retry-0.06.tar.gz

Annotate this POD

Website

View/Report Bugs
Source  

SYNOPSIS ^

 # in function metadata
 retry => 3,

 # more detailed
 retry => {n=>3, delay=>10, success_statuses=>/^(2..|3..)$/},

DESCRIPTION ^

This property specifies retry behavior.

Values: a hash containing these keys:

Property value can also be an integer (specifying just 'n').

If function does not return enveloped result (result_naked=0), which means there is no status returned, a function is assumed to fail only when it dies.

This property's wrapper implementation currently uses a simple loop around the eval block.

SEE ALSO ^

Perinci

syntax highlighting: