summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Early <alexander.early@gmail.com>2020-02-23 18:05:01 -0800
committerAlexander Early <alexander.early@gmail.com>2020-02-23 18:05:01 -0800
commitd13a5894dd35bf14e5c492eefb2b843e04e6b208 (patch)
tree2788a70bc3c1409e54ac155b16763a3082ff99ca
parent16d3c56722456bb890ec086aa8602783a2ed3fea (diff)
downloadasync-d13a5894dd35bf14e5c492eefb2b843e04e6b208.tar.gz
regen docs
-rw-r--r--docs/v3/docs.html6
-rw-r--r--docs/v3/module-ControlFlow.html6
-rw-r--r--docs/v3/until.js.html6
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) =&gt; {
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) =&gt; {
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 &apos;./internal/wrapAsync&apos;;
*
* @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) =&gt; {
* 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