diff options
author | Alexander Early <alexander.early@gmail.com> | 2020-02-23 18:05:01 -0800 |
---|---|---|
committer | Alexander Early <alexander.early@gmail.com> | 2020-02-23 18:05:01 -0800 |
commit | d13a5894dd35bf14e5c492eefb2b843e04e6b208 (patch) | |
tree | 2788a70bc3c1409e54ac155b16763a3082ff99ca | |
parent | 16d3c56722456bb890ec086aa8602783a2ed3fea (diff) | |
download | async-d13a5894dd35bf14e5c492eefb2b843e04e6b208.tar.gz |
regen docs
-rw-r--r-- | docs/v3/docs.html | 6 | ||||
-rw-r--r-- | docs/v3/module-ControlFlow.html | 6 | ||||
-rw-r--r-- | docs/v3/until.js.html | 6 |
3 files changed, 12 insertions, 6 deletions
diff --git a/docs/v3/docs.html b/docs/v3/docs.html index 02f3401..c4aef99 100644 --- a/docs/v3/docs.html +++ b/docs/v3/docs.html @@ -14780,13 +14780,15 @@ callback. Invoked with (err, [results]);</p></td> <h5>Example</h5> <pre class="prettyprint"><code>const results = [] +let finished = false async.until(function test(page, cb) { - cb(null, page.next == null) + cb(null, finished) }, function iter(next) { fetchPage(url, (err, body) => { if (err) return next(err) results = results.concat(body.objects) - next(err, body) + finished = !!body.next + next(err) }) }, function done (err) { // all pages have been fetched diff --git a/docs/v3/module-ControlFlow.html b/docs/v3/module-ControlFlow.html index 719f5ce..1305fef 100644 --- a/docs/v3/module-ControlFlow.html +++ b/docs/v3/module-ControlFlow.html @@ -5651,13 +5651,15 @@ callback. Invoked with (err, [results]);</p></td> <h5>Example</h5> <pre class="prettyprint"><code>const results = [] +let finished = false async.until(function test(page, cb) { - cb(null, page.next == null) + cb(null, finished) }, function iter(next) { fetchPage(url, (err, body) => { if (err) return next(err) results = results.concat(body.objects) - next(err, body) + finished = !!body.next + next(err) }) }, function done (err) { // all pages have been fetched diff --git a/docs/v3/until.js.html b/docs/v3/until.js.html index d7559fa..682632f 100644 --- a/docs/v3/until.js.html +++ b/docs/v3/until.js.html @@ -103,13 +103,15 @@ import wrapAsync from './internal/wrapAsync'; * * @example * const results = [] + * let finished = false * async.until(function test(page, cb) { - * cb(null, page.next == null) + * cb(null, finished) * }, function iter(next) { * fetchPage(url, (err, body) => { * if (err) return next(err) * results = results.concat(body.objects) - * next(err, body) + * finished = !!body.next + * next(err) * }) * }, function done (err) { * // all pages have been fetched |