node-attempt icon indicating copy to clipboard operation
node-attempt copied to clipboard

Automatically retry functions that fail, in crazily customizable ways.

Results 5 node-attempt issues
Sort by recently updated
recently updated
newest added

Please update the documentation to make it obvious that `this` should be used as a callback. It's not explicitly mentioned anywhere.

I don't want to retry every error. So maybe `onError` should get a third parameter that could be used like ``` JavaScript onError: function(err, done, abort) { if (err.code ===...

This may be a feature request. I wanted to know if I can somehow provide a timeout value in config, so if the function does not return in 'x' seconds...

I find the node-attempt module pretty useful, however as noted by someone else, the abort functionality is very much needed since sometimes further retries are either not necessary, or in...

Within attempted functions, `this` now exposes an `abort()` method that accepts an error. Calling it will make _attempt_ stop trying and fail right away.