Comparing version 0.0.6-2 to 0.0.6-3
{ | ||
"name": "re", | ||
"description": "Do it again, after a bit.", | ||
"version": "0.0.6-2", | ||
"version": "0.0.6-3", | ||
"main": "./lib/re", | ||
@@ -6,0 +6,0 @@ "keywords": ["utility", "retry", "exponential backoff", "linear backoff"], |
@@ -20,3 +20,3 @@ # Re | ||
var retry = require('re'), | ||
re = retry.Re(); | ||
re = new retry.Re(); | ||
@@ -42,3 +42,3 @@ re.try(function(retryCount, fail, callback){ | ||
The `retryCount` argument is the number if the current retry. It'll be zero the first time | ||
The `retryCount` argument is the number of the current retry. It'll be zero the first time | ||
and get bigger every time. | ||
@@ -73,3 +73,4 @@ | ||
var re = new retry.Re(options); | ||
var retry = require('re'), | ||
re = new retry.Re(options); | ||
@@ -76,0 +77,0 @@ This gives you 10 retries and an exponential backoff strategy with the following progression (in milliseconds): 100, 200, |
8501
112