diff options
author | cyrus durgin <cyrusd@gmail.com> | 2015-09-10 15:57:35 -0700 |
---|---|---|
committer | cyrus durgin <cyrusd@gmail.com> | 2015-09-10 15:57:35 -0700 |
commit | 6a55573d588e4a817986c8964d97dceb8c46585a (patch) | |
tree | c578059a5b8ac5d3adc7a8e2c92dfe82ca27b2ff /AUTHORS.rst | |
parent | da33537e0850f997aea75c4dec010e2b5594071f (diff) | |
download | retrying-6a55573d588e4a817986c8964d97dceb8c46585a.tar.gz |
Adds two additional parameters to the Retrying() constructor:
_before_attempts
_after_attempts
Each of these should be a reference to a function that takes a
single argument, attempt_number.
_before_attempts will be called before each attempt is run;
_after_attempts is run after any *unsuccessful* attempt.
Handy for logging status messages, etc in between attempts.
Diffstat (limited to 'AUTHORS.rst')
-rw-r--r-- | AUTHORS.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/AUTHORS.rst b/AUTHORS.rst index 9cb572f..42a456c 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -30,4 +30,5 @@ Patches and Suggestions - Monty Taylor - Maxym Shalenyi - Jonathan Herriott -- Job Evers
\ No newline at end of file +- Job Evers +- Cyrus Durgin |