Skip to content

Commit d13a589

Browse files
committed
regen docs
1 parent 16d3c56 commit d13a589

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

docs/v3/docs.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14780,13 +14780,15 @@ <h5>Returns:</h5>
1478014780
<h5>Example</h5>
1478114781

1478214782
<pre class="prettyprint"><code>const results = []
14783+
let finished = false
1478314784
async.until(function test(page, cb) {
14784-
cb(null, page.next == null)
14785+
cb(null, finished)
1478514786
}, function iter(next) {
1478614787
fetchPage(url, (err, body) =&gt; {
1478714788
if (err) return next(err)
1478814789
results = results.concat(body.objects)
14789-
next(err, body)
14790+
finished = !!body.next
14791+
next(err)
1479014792
})
1479114793
}, function done (err) {
1479214794
// all pages have been fetched

docs/v3/module-ControlFlow.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5651,13 +5651,15 @@ <h5>Returns:</h5>
56515651
<h5>Example</h5>
56525652

56535653
<pre class="prettyprint"><code>const results = []
5654+
let finished = false
56545655
async.until(function test(page, cb) {
5655-
cb(null, page.next == null)
5656+
cb(null, finished)
56565657
}, function iter(next) {
56575658
fetchPage(url, (err, body) =&gt; {
56585659
if (err) return next(err)
56595660
results = results.concat(body.objects)
5660-
next(err, body)
5661+
finished = !!body.next
5662+
next(err)
56615663
})
56625664
}, function done (err) {
56635665
// all pages have been fetched

docs/v3/until.js.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,15 @@ <h1 class="page-title">until.js</h1>
103103
*
104104
* @example
105105
* const results = []
106+
* let finished = false
106107
* async.until(function test(page, cb) {
107-
* cb(null, page.next == null)
108+
* cb(null, finished)
108109
* }, function iter(next) {
109110
* fetchPage(url, (err, body) =&gt; {
110111
* if (err) return next(err)
111112
* results = results.concat(body.objects)
112-
* next(err, body)
113+
* finished = !!body.next
114+
* next(err)
113115
* })
114116
* }, function done (err) {
115117
* // all pages have been fetched

0 commit comments

Comments
 (0)