Skip to content

Commit

Permalink
regen docs
Browse files Browse the repository at this point in the history
  • Loading branch information
aearly committed Feb 24, 2020
1 parent 16d3c56 commit d13a589
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 4 additions & 2 deletions docs/v3/docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -14780,13 +14780,15 @@ <h5>Returns:</h5>
<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
Expand Down
6 changes: 4 additions & 2 deletions docs/v3/module-ControlFlow.html
Original file line number Diff line number Diff line change
Expand Up @@ -5651,13 +5651,15 @@ <h5>Returns:</h5>
<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
Expand Down
6 changes: 4 additions & 2 deletions docs/v3/until.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,15 @@ <h1 class="page-title">until.js</h1>
*
* @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
Expand Down

0 comments on commit d13a589

Please sign in to comment.