diff options
author | cjihrig <cjihrig@gmail.com> | 2019-11-25 16:43:59 -0500 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2019-11-27 18:27:11 -0500 |
commit | b7cdeb8a3a39000944106ddcd8ebcd5d1a8a5486 (patch) | |
tree | 6824d92c5d81d4987e73bac5a75d1b79cbb43eb3 /doc | |
parent | 4c77a76ad91aaa7c4560c00c298bfcc74e49f573 (diff) | |
download | android-node-v8-b7cdeb8a3a39000944106ddcd8ebcd5d1a8a5486.tar.gz android-node-v8-b7cdeb8a3a39000944106ddcd8ebcd5d1a8a5486.tar.bz2 android-node-v8-b7cdeb8a3a39000944106ddcd8ebcd5d1a8a5486.zip |
fs: add retryDelay option to rimraf
This commit adds a retryDelay option to rimraf which configures
the amount of time between retry operations.
Refs: https://github.com/nodejs/node/issues/30580
PR-URL: https://github.com/nodejs/node/pull/30644
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/fs.md | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/doc/api/fs.md b/doc/api/fs.md index 2b32379a58..1a34e18414 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -3224,7 +3224,8 @@ changes: pr-url: https://github.com/nodejs/node/pull/30644 description: The `maxBusyTries` option is renamed to `maxRetries`, and its default is 0. The `emfileWait` option has been removed, and - `EMFILE` errors use the same retry logic as other errors. + `EMFILE` errors use the same retry logic as other errors. The + `retryDelay` option is now supported. - version: v12.10.0 pr-url: https://github.com/nodejs/node/pull/29168 description: The `recursive`, `maxBusyTries`, and `emfileWait` options are @@ -3249,12 +3250,15 @@ changes: * `options` {Object} * `maxRetries` {integer} If an `EBUSY`, `EMFILE`, `ENOTEMPTY`, or `EPERM` error is encountered, Node.js will retry the operation with a linear backoff - wait of 100ms longer on each try. This option represents the number of - retries. This option is ignored if the `recursive` option is not `true`. + wait of `retryDelay` ms longer on each try. This option represents the number + of retries. This option is ignored if the `recursive` option is not `true`. **Default:** `0`. * `recursive` {boolean} If `true`, perform a recursive directory removal. In recursive mode, errors are not reported if `path` does not exist, and operations are retried on failure. **Default:** `false`. + * `retryDelay` {integer} The amount of time in milliseconds to wait between + retries. This option is ignored if the `recursive` option is not `true`. + **Default:** `100`. * `callback` {Function} * `err` {Error} @@ -3272,7 +3276,8 @@ changes: pr-url: https://github.com/nodejs/node/pull/30644 description: The `maxBusyTries` option is renamed to `maxRetries`, and its default is 0. The `emfileWait` option has been removed, and - `EMFILE` errors use the same retry logic as other errors. + `EMFILE` errors use the same retry logic as other errors. The + `retryDelay` option is now supported. - version: v12.10.0 pr-url: https://github.com/nodejs/node/pull/29168 description: The `recursive`, `maxBusyTries`, and `emfileWait` options are @@ -3294,6 +3299,9 @@ changes: * `recursive` {boolean} If `true`, perform a recursive directory removal. In recursive mode, errors are not reported if `path` does not exist, and operations are retried on failure. **Default:** `false`. + * `retryDelay` {integer} The amount of time in milliseconds to wait between + retries. This option is ignored if the `recursive` option is not `true`. + **Default:** `100`. Synchronous rmdir(2). Returns `undefined`. @@ -5005,7 +5013,8 @@ changes: pr-url: https://github.com/nodejs/node/pull/30644 description: The `maxBusyTries` option is renamed to `maxRetries`, and its default is 0. The `emfileWait` option has been removed, and - `EMFILE` errors use the same retry logic as other errors. + `EMFILE` errors use the same retry logic as other errors. The + `retryDelay` option is now supported. - version: v12.10.0 pr-url: https://github.com/nodejs/node/pull/29168 description: The `recursive`, `maxBusyTries`, and `emfileWait` options are @@ -5018,12 +5027,15 @@ changes: * `options` {Object} * `maxRetries` {integer} If an `EBUSY`, `EMFILE`, `ENOTEMPTY`, or `EPERM` error is encountered, Node.js will retry the operation with a linear backoff - wait of 100ms longer on each try. This option represents the number of - retries. This option is ignored if the `recursive` option is not `true`. + wait of `retryDelay` ms longer on each try. This option represents the number + of retries. This option is ignored if the `recursive` option is not `true`. **Default:** `0`. * `recursive` {boolean} If `true`, perform a recursive directory removal. In recursive mode, errors are not reported if `path` does not exist, and operations are retried on failure. **Default:** `false`. + * `retryDelay` {integer} The amount of time in milliseconds to wait between + retries. This option is ignored if the `recursive` option is not `true`. + **Default:** `100`. * Returns: {Promise} Removes the directory identified by `path` then resolves the `Promise` with |