summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/promise-retry/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/promise-retry/README.md')
-rw-r--r--deps/npm/node_modules/promise-retry/README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/deps/npm/node_modules/promise-retry/README.md b/deps/npm/node_modules/promise-retry/README.md
index 85c3bc57e8..c50328374e 100644
--- a/deps/npm/node_modules/promise-retry/README.md
+++ b/deps/npm/node_modules/promise-retry/README.md
@@ -28,7 +28,7 @@ they were rather difficult to use or do not offer an easy way to do conditional
### promiseRetry(fn, [options])
Calls `fn` until the returned promise ends up fulfilled or rejected with an error different than
-a `retry` error.
+a `retry` error.
The `options` argument is an object which maps to the [retry](https://github.com/tim-kos/node-retry) module options:
- `retries`: The maximum amount of times to retry the operation. Default is `10`.
@@ -38,7 +38,7 @@ The `options` argument is an object which maps to the [retry](https://github.com
- `randomize`: Randomizes the timeouts by multiplying with a factor between `1` to `2`. Default is `false`.
-The `fn` function will receive a `retry` function as its first argument that should be called with an error whenever you want to retry `fn`. The `retry` function will always throw an error.
+The `fn` function will receive a `retry` function as its first argument that should be called with an error whenever you want to retry `fn`. The `retry` function will always throw an error.
If there's retries left, it will throw a special `retry` error that will be handled internally to call `fn` again.
If there's no retries left, it will throw the actual error passed to it.