moderndash
Advanced tools
Comparing version 0.7.1 to 0.7.2
@@ -549,3 +549,3 @@ /** | ||
* const promise2 = Promise.resolve(2); | ||
* const promise2 = Promise.resolve(3); | ||
* const promise3 = Promise.resolve(3); | ||
* | ||
@@ -573,3 +573,4 @@ * const firstThree = await races(3, promise1, promise2, promise3); | ||
* const response = await fetch(url); | ||
* response.ok || throw new Error('Failed to fetch'); | ||
* if(!response.ok) | ||
* throw new Error('Failed to fetch'); | ||
* } | ||
@@ -579,3 +580,3 @@ * | ||
* | ||
* await retry(() => fetchSite('https://example.com'), { maxRetries: 3, backoff: retries => retries * 1000, onRetry: logger })); | ||
* await retry(() => fetchSite('https://example.com'), { maxRetries: 3, backoff: retries => retries * 1000, onRetry: logger }); | ||
* // => Will retry 3 times with a 1 second delay between each retry. Will log the error and retry number. | ||
@@ -582,0 +583,0 @@ * |
@@ -51,3 +51,3 @@ { | ||
}, | ||
"version": "0.7.1" | ||
"version": "0.7.2" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
196809
2259