backoff icon indicating copy to clipboard operation
backoff copied to clipboard

'giveup' needs args and kwargs of the function to be retried

Open terrisgit opened this issue 6 years ago • 1 comments

I have a use case for a 'giveup' function to work conditionally, based on the arguments passed to the function to be retried.

terrisgit avatar Mar 01 '18 22:03 terrisgit

The giveup function could take a details param like the event handlers. The downside is this would break the current contract and I don't think there's a good way to make it backward compatible. We could probably include this in backoff 2.0 though.

bgreen-litl avatar Jun 01 '18 21:06 bgreen-litl