summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHubert Argasinski <argasinski.hubert@gmail.com>2022-06-07 00:01:32 -0400
committerHubert Argasinski <argasinski.hubert@gmail.com>2022-06-07 00:01:32 -0400
commit63d0de2fd9f85d9e0727c3a82a250a561294a3fd (patch)
tree843d5c5456f24cbb8dbdc3a8d7a8365cc307e497
parentf3ab51af76ca87ebe3ec67b3dd6dec4959e04816 (diff)
downloadasync-63d0de2fd9f85d9e0727c3a82a250a561294a3fd.tar.gz
update docs for v3.2.4
-rw-r--r--docs/v3/apply.js.html2
-rw-r--r--docs/v3/applyEach.js.html2
-rw-r--r--docs/v3/applyEachSeries.js.html2
-rw-r--r--docs/v3/asyncify.js.html2
-rw-r--r--docs/v3/auto.js.html2
-rw-r--r--docs/v3/autoInject.js.html2
-rw-r--r--docs/v3/cargo.js.html2
-rw-r--r--docs/v3/cargoQueue.js.html2
-rw-r--r--docs/v3/compose.js.html2
-rw-r--r--docs/v3/concat.js.html2
-rw-r--r--docs/v3/concatLimit.js.html2
-rw-r--r--docs/v3/concatSeries.js.html2
-rw-r--r--docs/v3/constant.js.html2
-rw-r--r--docs/v3/detect.js.html4
-rw-r--r--docs/v3/detectLimit.js.html4
-rw-r--r--docs/v3/detectSeries.js.html4
-rw-r--r--docs/v3/dir.js.html2
-rw-r--r--docs/v3/doUntil.js.html2
-rw-r--r--docs/v3/doWhilst.js.html2
-rw-r--r--docs/v3/docs.html90
-rw-r--r--docs/v3/each.js.html2
-rw-r--r--docs/v3/eachLimit.js.html2
-rw-r--r--docs/v3/eachOf.js.html2
-rw-r--r--docs/v3/eachOfLimit.js.html2
-rw-r--r--docs/v3/eachOfSeries.js.html2
-rw-r--r--docs/v3/eachSeries.js.html2
-rw-r--r--docs/v3/ensureAsync.js.html2
-rw-r--r--docs/v3/every.js.html2
-rw-r--r--docs/v3/everyLimit.js.html2
-rw-r--r--docs/v3/everySeries.js.html2
-rw-r--r--docs/v3/filter.js.html2
-rw-r--r--docs/v3/filterLimit.js.html2
-rw-r--r--docs/v3/filterSeries.js.html2
-rw-r--r--docs/v3/forever.js.html2
-rw-r--r--docs/v3/global.html2
-rw-r--r--docs/v3/groupBy.js.html2
-rw-r--r--docs/v3/groupByLimit.js.html2
-rw-r--r--docs/v3/groupBySeries.js.html2
-rw-r--r--docs/v3/index.html2
-rw-r--r--docs/v3/index.js.html2
-rw-r--r--docs/v3/log.js.html2
-rw-r--r--docs/v3/map.js.html2
-rw-r--r--docs/v3/mapLimit.js.html2
-rw-r--r--docs/v3/mapSeries.js.html2
-rw-r--r--docs/v3/mapValues.js.html2
-rw-r--r--docs/v3/mapValuesLimit.js.html2
-rw-r--r--docs/v3/mapValuesSeries.js.html2
-rw-r--r--docs/v3/memoize.js.html2
-rw-r--r--docs/v3/module-Collections.html50
-rw-r--r--docs/v3/module-ControlFlow.html42
-rw-r--r--docs/v3/module-Utils.html2
-rw-r--r--docs/v3/module-async.html2
-rw-r--r--docs/v3/nextTick.js.html2
-rw-r--r--docs/v3/parallel.js.html2
-rw-r--r--docs/v3/parallelLimit.js.html2
-rw-r--r--docs/v3/priorityQueue.js.html66
-rw-r--r--docs/v3/queue.js.html2
-rw-r--r--docs/v3/race.js.html4
-rw-r--r--docs/v3/reduce.js.html2
-rw-r--r--docs/v3/reduceRight.js.html2
-rw-r--r--docs/v3/reflect.js.html2
-rw-r--r--docs/v3/reflectAll.js.html2
-rw-r--r--docs/v3/reject.js.html2
-rw-r--r--docs/v3/rejectLimit.js.html2
-rw-r--r--docs/v3/rejectSeries.js.html2
-rw-r--r--docs/v3/retry.js.html2
-rw-r--r--docs/v3/retryable.js.html2
-rw-r--r--docs/v3/scripts/async.js98
-rw-r--r--docs/v3/seq.js.html2
-rw-r--r--docs/v3/series.js.html2
-rw-r--r--docs/v3/setImmediate.js.html2
-rw-r--r--docs/v3/some.js.html2
-rw-r--r--docs/v3/someLimit.js.html2
-rw-r--r--docs/v3/someSeries.js.html2
-rw-r--r--docs/v3/sortBy.js.html2
-rw-r--r--docs/v3/timeout.js.html2
-rw-r--r--docs/v3/times.js.html2
-rw-r--r--docs/v3/timesLimit.js.html2
-rw-r--r--docs/v3/timesSeries.js.html2
-rw-r--r--docs/v3/transform.js.html2
-rw-r--r--docs/v3/tryEach.js.html2
-rw-r--r--docs/v3/unmemoize.js.html2
-rw-r--r--docs/v3/until.js.html2
-rw-r--r--docs/v3/waterfall.js.html4
-rw-r--r--docs/v3/whilst.js.html2
85 files changed, 319 insertions, 197 deletions
diff --git a/docs/v3/apply.js.html b/docs/v3/apply.js.html
index 728b671..b0ec573 100644
--- a/docs/v3/apply.js.html
+++ b/docs/v3/apply.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/applyEach.js.html b/docs/v3/applyEach.js.html
index 6c82234..c70d5b4 100644
--- a/docs/v3/applyEach.js.html
+++ b/docs/v3/applyEach.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/applyEachSeries.js.html b/docs/v3/applyEachSeries.js.html
index 478f9aa..ffbd5e8 100644
--- a/docs/v3/applyEachSeries.js.html
+++ b/docs/v3/applyEachSeries.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/asyncify.js.html b/docs/v3/asyncify.js.html
index d063947..8efad01 100644
--- a/docs/v3/asyncify.js.html
+++ b/docs/v3/asyncify.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/auto.js.html b/docs/v3/auto.js.html
index beb4d68..e49cbff 100644
--- a/docs/v3/auto.js.html
+++ b/docs/v3/auto.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/autoInject.js.html b/docs/v3/autoInject.js.html
index 32f9316..22b68b2 100644
--- a/docs/v3/autoInject.js.html
+++ b/docs/v3/autoInject.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/cargo.js.html b/docs/v3/cargo.js.html
index 9b51cdb..ddbb96b 100644
--- a/docs/v3/cargo.js.html
+++ b/docs/v3/cargo.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/cargoQueue.js.html b/docs/v3/cargoQueue.js.html
index 683bdab..9435812 100644
--- a/docs/v3/cargoQueue.js.html
+++ b/docs/v3/cargoQueue.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/compose.js.html b/docs/v3/compose.js.html
index 121fda7..72df37a 100644
--- a/docs/v3/compose.js.html
+++ b/docs/v3/compose.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/concat.js.html b/docs/v3/concat.js.html
index 6860f8a..d5a52c5 100644
--- a/docs/v3/concat.js.html
+++ b/docs/v3/concat.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/concatLimit.js.html b/docs/v3/concatLimit.js.html
index c91704a..36f9b92 100644
--- a/docs/v3/concatLimit.js.html
+++ b/docs/v3/concatLimit.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/concatSeries.js.html b/docs/v3/concatSeries.js.html
index 7842123..7e4b316 100644
--- a/docs/v3/concatSeries.js.html
+++ b/docs/v3/concatSeries.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/constant.js.html b/docs/v3/constant.js.html
index 7271566..4764e42 100644
--- a/docs/v3/constant.js.html
+++ b/docs/v3/constant.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/detect.js.html b/docs/v3/detect.js.html
index 3bd7b44..0824a6c 100644
--- a/docs/v3/detect.js.html
+++ b/docs/v3/detect.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
@@ -104,7 +104,7 @@ import awaitify from &apos;./internal/awaitify.js&apos;
* Result will be the first item in the array that passes the truth test
* (iteratee) or the value `undefined` if none passed. Invoked with
* (err, result).
- * @returns A Promise, if no callback is passed
+ * @returns {Promise} a promise, if a callback is omitted
* @example
*
* // dir1 is a directory that contains file1.txt, file2.txt
diff --git a/docs/v3/detectLimit.js.html b/docs/v3/detectLimit.js.html
index 5f23b6c..cfc6c66 100644
--- a/docs/v3/detectLimit.js.html
+++ b/docs/v3/detectLimit.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
@@ -100,7 +100,7 @@ import awaitify from &apos;./internal/awaitify.js&apos;
* Result will be the first item in the array that passes the truth test
* (iteratee) or the value `undefined` if none passed. Invoked with
* (err, result).
- * @returns a Promise if no callback is passed
+ * @returns {Promise} a promise, if a callback is omitted
*/
function detectLimit(coll, limit, iteratee, callback) {
return createTester(bool =&gt; bool, (res, item) =&gt; item)(eachOfLimit(limit), coll, iteratee, callback)
diff --git a/docs/v3/detectSeries.js.html b/docs/v3/detectSeries.js.html
index 6d5c8c3..791ca20 100644
--- a/docs/v3/detectSeries.js.html
+++ b/docs/v3/detectSeries.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
@@ -98,7 +98,7 @@ import awaitify from &apos;./internal/awaitify.js&apos;
* Result will be the first item in the array that passes the truth test
* (iteratee) or the value `undefined` if none passed. Invoked with
* (err, result).
- * @returns a Promise if no callback is passed
+ * @returns {Promise} a promise, if a callback is omitted
*/
function detectSeries(coll, iteratee, callback) {
return createTester(bool =&gt; bool, (res, item) =&gt; item)(eachOfLimit(1), coll, iteratee, callback)
diff --git a/docs/v3/dir.js.html b/docs/v3/dir.js.html
index ae6b880..a630abc 100644
--- a/docs/v3/dir.js.html
+++ b/docs/v3/dir.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/doUntil.js.html b/docs/v3/doUntil.js.html
index 828a520..1b40a7d 100644
--- a/docs/v3/doUntil.js.html
+++ b/docs/v3/doUntil.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/doWhilst.js.html b/docs/v3/doWhilst.js.html
index f1987fd..440abb5 100644
--- a/docs/v3/doWhilst.js.html
+++ b/docs/v3/doWhilst.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/docs.html b/docs/v3/docs.html
index 3d77f4d..5545f44 100644
--- a/docs/v3/docs.html
+++ b/docs/v3/docs.html
@@ -31,7 +31,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
@@ -1074,7 +1074,7 @@ containing the concatenated results of the <code>iteratee</code> function. Invok
- <h4 class="name" id="detect"><span class="type-signature">(static) </span>detect<span class="signature">(coll, iteratee, callback<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
+ <h4 class="name" id="detect"><span class="type-signature">(static) </span>detect<span class="signature">(coll, iteratee, callback<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &#x2192; {Promise}</span></h4>
@@ -1224,11 +1224,23 @@ Result will be the first item in the array that passes the truth test
<div class="param-desc">
- <p>A Promise, if no callback is passed</p>
+ <p>a promise, if a callback is omitted</p>
</div>
+<dl class="param-type">
+ <dt>
+ Type
+ </dt>
+ <dd>
+
+<span class="param-type">Promise</span>
+
+
+ </dd>
+</dl>
+
@@ -1337,7 +1349,7 @@ async () =&gt; {
- <h4 class="name" id="detectLimit"><span class="type-signature">(static) </span>detectLimit<span class="signature">(coll, limit, iteratee, callback<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
+ <h4 class="name" id="detectLimit"><span class="type-signature">(static) </span>detectLimit<span class="signature">(coll, limit, iteratee, callback<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &#x2192; {Promise}</span></h4>
@@ -1505,11 +1517,23 @@ Result will be the first item in the array that passes the truth test
<div class="param-desc">
- <p>a Promise if no callback is passed</p>
+ <p>a promise, if a callback is omitted</p>
</div>
+<dl class="param-type">
+ <dt>
+ Type
+ </dt>
+ <dd>
+
+<span class="param-type">Promise</span>
+
+
+ </dd>
+</dl>
+
@@ -1580,7 +1604,7 @@ Result will be the first item in the array that passes the truth test
- <h4 class="name" id="detectSeries"><span class="type-signature">(static) </span>detectSeries<span class="signature">(coll, iteratee, callback<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
+ <h4 class="name" id="detectSeries"><span class="type-signature">(static) </span>detectSeries<span class="signature">(coll, iteratee, callback<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &#x2192; {Promise}</span></h4>
@@ -1724,11 +1748,23 @@ Result will be the first item in the array that passes the truth test
<div class="param-desc">
- <p>a Promise if no callback is passed</p>
+ <p>a promise, if a callback is omitted</p>
</div>
+<dl class="param-type">
+ <dt>
+ Type
+ </dt>
+ <dd>
+
+<span class="param-type">Promise</span>
+
+
+ </dd>
+</dl>
+
@@ -13297,12 +13333,14 @@ functions should be run in parallel. If omitted, the concurrency defaults to
<div class="param-desc">
- <p>A priorityQueue object to manage the tasks. There are two
+ <p>A priorityQueue object to manage the tasks. There are three
differences between <code>queue</code> and <code>priorityQueue</code> objects:</p>
<ul>
<li><code>push(task, priority, [callback])</code> - <code>priority</code> should be a number. If an
array of <code>tasks</code> is given, all tasks will be assigned the same priority.</li>
-<li>The <code>unshift</code> method was removed.</li>
+<li><code>pushAsync(task, priority, [callback])</code> - the same as <code>priorityQueue.push</code>,
+except this returns a promise that rejects if an error occurs.</li>
+<li>The <code>unshift</code> and <code>unshiftAsync</code> methods were removed.</li>
</ul>
</div>
@@ -13356,7 +13394,7 @@ array of <code>tasks</code> is given, all tasks will be assigned the same priori
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
- <a href="priorityQueue.js.html">priorityQueue.js</a>, <a href="priorityQueue.js.html#line5">line 5</a>
+ <a href="priorityQueue.js.html">priorityQueue.js</a>, <a href="priorityQueue.js.html#line4">line 4</a>
</li></ul></dd>
@@ -13630,7 +13668,7 @@ q.unshift({name: &apos;bar&apos;}, function (err) {
- <h4 class="name" id="race"><span class="type-signature">(static) </span>race<span class="signature">(tasks, callback)</span><span class="type-signature"></span></h4>
+ <h4 class="name" id="race"><span class="type-signature">(static) </span>race<span class="signature">(tasks, callback)</span><span class="type-signature"> &#x2192; {Promise}</span></h4>
@@ -13735,11 +13773,23 @@ completed. Invoked with (err, result).</p></td>
<div class="param-desc">
- <p>undefined</p>
+ <p>a promise, if a callback is omitted</p>
</div>
+<dl class="param-type">
+ <dt>
+ Type
+ </dt>
+ <dd>
+
+<span class="param-type">Promise</span>
+
+
+ </dd>
+</dl>
+
@@ -16010,7 +16060,7 @@ async.until(function test(cb) {
- <h4 class="name" id="waterfall"><span class="type-signature">(static) </span>waterfall<span class="signature">(tasks, callback<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
+ <h4 class="name" id="waterfall"><span class="type-signature">(static) </span>waterfall<span class="signature">(tasks, callback<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &#x2192; {Promise}</span></h4>
@@ -16119,11 +16169,23 @@ callback. Invoked with (err, [results]).</p></td>
<div class="param-desc">
- <p>undefined</p>
+ <p>a promise, if a callback is omitted</p>
</div>
+<dl class="param-type">
+ <dt>
+ Type
+ </dt>
+ <dd>
+
+<span class="param-type">Promise</span>
+
+
+ </dd>
+</dl>
+
diff --git a/docs/v3/each.js.html b/docs/v3/each.js.html
index 913e192..2a5f3ec 100644
--- a/docs/v3/each.js.html
+++ b/docs/v3/each.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/eachLimit.js.html b/docs/v3/eachLimit.js.html
index e8b6a5b..bb4f15a 100644
--- a/docs/v3/eachLimit.js.html
+++ b/docs/v3/eachLimit.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/eachOf.js.html b/docs/v3/eachOf.js.html
index 408ff1d..3ac9e29 100644
--- a/docs/v3/eachOf.js.html
+++ b/docs/v3/eachOf.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/eachOfLimit.js.html b/docs/v3/eachOfLimit.js.html
index 4a5a77a..f87fdd1 100644
--- a/docs/v3/eachOfLimit.js.html
+++ b/docs/v3/eachOfLimit.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/eachOfSeries.js.html b/docs/v3/eachOfSeries.js.html
index 75f3e1f..6dfddb1 100644
--- a/docs/v3/eachOfSeries.js.html
+++ b/docs/v3/eachOfSeries.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/eachSeries.js.html b/docs/v3/eachSeries.js.html
index 9b964d7..66a19a1 100644
--- a/docs/v3/eachSeries.js.html
+++ b/docs/v3/eachSeries.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/ensureAsync.js.html b/docs/v3/ensureAsync.js.html
index 118afbb..1838155 100644
--- a/docs/v3/ensureAsync.js.html
+++ b/docs/v3/ensureAsync.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/every.js.html b/docs/v3/every.js.html
index d69cc6e..b276ec5 100644
--- a/docs/v3/every.js.html
+++ b/docs/v3/every.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/everyLimit.js.html b/docs/v3/everyLimit.js.html
index 843d541..41fbc2f 100644
--- a/docs/v3/everyLimit.js.html
+++ b/docs/v3/everyLimit.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/everySeries.js.html b/docs/v3/everySeries.js.html
index 9446e4d..85cdb60 100644
--- a/docs/v3/everySeries.js.html
+++ b/docs/v3/everySeries.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/filter.js.html b/docs/v3/filter.js.html
index 02d03bf..94d1de4 100644
--- a/docs/v3/filter.js.html
+++ b/docs/v3/filter.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/filterLimit.js.html b/docs/v3/filterLimit.js.html
index 9883e3d..adb6d5e 100644
--- a/docs/v3/filterLimit.js.html
+++ b/docs/v3/filterLimit.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/filterSeries.js.html b/docs/v3/filterSeries.js.html
index 8a435fa..8d858db 100644
--- a/docs/v3/filterSeries.js.html
+++ b/docs/v3/filterSeries.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/forever.js.html b/docs/v3/forever.js.html
index 24de1aa..f091698 100644
--- a/docs/v3/forever.js.html
+++ b/docs/v3/forever.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/global.html b/docs/v3/global.html
index 3c3744b..685d6d3 100644
--- a/docs/v3/global.html
+++ b/docs/v3/global.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/groupBy.js.html b/docs/v3/groupBy.js.html
index d218458..b023355 100644
--- a/docs/v3/groupBy.js.html
+++ b/docs/v3/groupBy.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/groupByLimit.js.html b/docs/v3/groupByLimit.js.html
index 5aef876..6ca86ff 100644
--- a/docs/v3/groupByLimit.js.html
+++ b/docs/v3/groupByLimit.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/groupBySeries.js.html b/docs/v3/groupBySeries.js.html
index bd3dea7..c9ff805 100644
--- a/docs/v3/groupBySeries.js.html
+++ b/docs/v3/groupBySeries.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/index.html b/docs/v3/index.html
index b2157a5..9256e95 100644
--- a/docs/v3/index.html
+++ b/docs/v3/index.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/index.js.html b/docs/v3/index.js.html
index 1c571b7..073bd97 100644
--- a/docs/v3/index.js.html
+++ b/docs/v3/index.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/log.js.html b/docs/v3/log.js.html
index 2aa32ee..290040f 100644
--- a/docs/v3/log.js.html
+++ b/docs/v3/log.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/map.js.html b/docs/v3/map.js.html
index 26c7ae2..e56c70f 100644
--- a/docs/v3/map.js.html
+++ b/docs/v3/map.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/mapLimit.js.html b/docs/v3/mapLimit.js.html
index 109d997..9d7af94 100644
--- a/docs/v3/mapLimit.js.html
+++ b/docs/v3/mapLimit.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/mapSeries.js.html b/docs/v3/mapSeries.js.html
index 259acf0..9839383 100644
--- a/docs/v3/mapSeries.js.html
+++ b/docs/v3/mapSeries.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/mapValues.js.html b/docs/v3/mapValues.js.html
index 77de5f4..6508b35 100644
--- a/docs/v3/mapValues.js.html
+++ b/docs/v3/mapValues.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/mapValuesLimit.js.html b/docs/v3/mapValuesLimit.js.html
index 37f978f..b3e3dfa 100644
--- a/docs/v3/mapValuesLimit.js.html
+++ b/docs/v3/mapValuesLimit.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/mapValuesSeries.js.html b/docs/v3/mapValuesSeries.js.html
index 36297e0..43cceaa 100644
--- a/docs/v3/mapValuesSeries.js.html
+++ b/docs/v3/mapValuesSeries.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/memoize.js.html b/docs/v3/memoize.js.html
index bd711ec..a23091e 100644
--- a/docs/v3/memoize.js.html
+++ b/docs/v3/memoize.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/module-Collections.html b/docs/v3/module-Collections.html
index 83c881b..f09e3f0 100644
--- a/docs/v3/module-Collections.html
+++ b/docs/v3/module-Collections.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
@@ -934,7 +934,7 @@ containing the concatenated results of the <code>iteratee</code> function. Invok
- <h4 class="name" id="detect"><span class="type-signature">(static) </span>detect<span class="signature">(coll, iteratee, callback<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
+ <h4 class="name" id="detect"><span class="type-signature">(static) </span>detect<span class="signature">(coll, iteratee, callback<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &#x2192; {Promise}</span></h4>
@@ -1084,11 +1084,23 @@ Result will be the first item in the array that passes the truth test
<div class="param-desc">
- <p>A Promise, if no callback is passed</p>
+ <p>a promise, if a callback is omitted</p>
</div>
+<dl class="param-type">
+ <dt>
+ Type
+ </dt>
+ <dd>
+
+<span class="param-type">Promise</span>
+
+
+ </dd>
+</dl>
+
@@ -1197,7 +1209,7 @@ async () =&gt; {
- <h4 class="name" id="detectLimit"><span class="type-signature">(static) </span>detectLimit<span class="signature">(coll, limit, iteratee, callback<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
+ <h4 class="name" id="detectLimit"><span class="type-signature">(static) </span>detectLimit<span class="signature">(coll, limit, iteratee, callback<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &#x2192; {Promise}</span></h4>
@@ -1365,11 +1377,23 @@ Result will be the first item in the array that passes the truth test
<div class="param-desc">
- <p>a Promise if no callback is passed</p>
+ <p>a promise, if a callback is omitted</p>
</div>
+<dl class="param-type">
+ <dt>
+ Type
+ </dt>
+ <dd>
+
+<span class="param-type">Promise</span>
+
+
+ </dd>
+</dl>
+
@@ -1440,7 +1464,7 @@ Result will be the first item in the array that passes the truth test
- <h4 class="name" id="detectSeries"><span class="type-signature">(static) </span>detectSeries<span class="signature">(coll, iteratee, callback<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
+ <h4 class="name" id="detectSeries"><span class="type-signature">(static) </span>detectSeries<span class="signature">(coll, iteratee, callback<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &#x2192; {Promise}</span></h4>
@@ -1584,11 +1608,23 @@ Result will be the first item in the array that passes the truth test
<div class="param-desc">
- <p>a Promise if no callback is passed</p>
+ <p>a promise, if a callback is omitted</p>
</div>
+<dl class="param-type">
+ <dt>
+ Type
+ </dt>
+ <dd>
+
+<span class="param-type">Promise</span>
+
+
+ </dd>
+</dl>
+
diff --git a/docs/v3/module-ControlFlow.html b/docs/v3/module-ControlFlow.html
index 8ca7162..b14ee1b 100644
--- a/docs/v3/module-ControlFlow.html
+++ b/docs/v3/module-ControlFlow.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
@@ -3270,12 +3270,14 @@ functions should be run in parallel. If omitted, the concurrency defaults to
<div class="param-desc">
- <p>A priorityQueue object to manage the tasks. There are two
+ <p>A priorityQueue object to manage the tasks. There are three
differences between <code>queue</code> and <code>priorityQueue</code> objects:</p>
<ul>
<li><code>push(task, priority, [callback])</code> - <code>priority</code> should be a number. If an
array of <code>tasks</code> is given, all tasks will be assigned the same priority.</li>
-<li>The <code>unshift</code> method was removed.</li>
+<li><code>pushAsync(task, priority, [callback])</code> - the same as <code>priorityQueue.push</code>,
+except this returns a promise that rejects if an error occurs.</li>
+<li>The <code>unshift</code> and <code>unshiftAsync</code> methods were removed.</li>
</ul>
</div>
@@ -3329,7 +3331,7 @@ array of <code>tasks</code> is given, all tasks will be assigned the same priori
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
- <a href="priorityQueue.js.html">priorityQueue.js</a>, <a href="priorityQueue.js.html#line5">line 5</a>
+ <a href="priorityQueue.js.html">priorityQueue.js</a>, <a href="priorityQueue.js.html#line4">line 4</a>
</li></ul></dd>
@@ -3603,7 +3605,7 @@ q.unshift({name: &apos;bar&apos;}, function (err) {
- <h4 class="name" id="race"><span class="type-signature">(static) </span>race<span class="signature">(tasks, callback)</span><span class="type-signature"></span></h4>
+ <h4 class="name" id="race"><span class="type-signature">(static) </span>race<span class="signature">(tasks, callback)</span><span class="type-signature"> &#x2192; {Promise}</span></h4>
@@ -3708,11 +3710,23 @@ completed. Invoked with (err, result).</p></td>
<div class="param-desc">
- <p>undefined</p>
+ <p>a promise, if a callback is omitted</p>
</div>
+<dl class="param-type">
+ <dt>
+ Type
+ </dt>
+ <dd>
+
+<span class="param-type">Promise</span>
+
+
+ </dd>
+</dl>
+
@@ -5983,7 +5997,7 @@ async.until(function test(cb) {
- <h4 class="name" id="waterfall"><span class="type-signature">(static) </span>waterfall<span class="signature">(tasks, callback<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
+ <h4 class="name" id="waterfall"><span class="type-signature">(static) </span>waterfall<span class="signature">(tasks, callback<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &#x2192; {Promise}</span></h4>
@@ -6092,11 +6106,23 @@ callback. Invoked with (err, [results]).</p></td>
<div class="param-desc">
- <p>undefined</p>
+ <p>a promise, if a callback is omitted</p>
</div>
+<dl class="param-type">
+ <dt>
+ Type
+ </dt>
+ <dd>
+
+<span class="param-type">Promise</span>
+
+
+ </dd>
+</dl>
+
diff --git a/docs/v3/module-Utils.html b/docs/v3/module-Utils.html
index 478a2dd..113b6f0 100644
--- a/docs/v3/module-Utils.html
+++ b/docs/v3/module-Utils.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/module-async.html b/docs/v3/module-async.html
index 768f51c..bae7abb 100644
--- a/docs/v3/module-async.html
+++ b/docs/v3/module-async.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/nextTick.js.html b/docs/v3/nextTick.js.html
index eacf50d..0a9e518 100644
--- a/docs/v3/nextTick.js.html
+++ b/docs/v3/nextTick.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/parallel.js.html b/docs/v3/parallel.js.html
index 5fa2538..7f449f5 100644
--- a/docs/v3/parallel.js.html
+++ b/docs/v3/parallel.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/parallelLimit.js.html b/docs/v3/parallelLimit.js.html
index 7797d93..0b83de2 100644
--- a/docs/v3/parallelLimit.js.html
+++ b/docs/v3/parallelLimit.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/priorityQueue.js.html b/docs/v3/priorityQueue.js.html
index 054146f..cc00112 100644
--- a/docs/v3/priorityQueue.js.html
+++ b/docs/v3/priorityQueue.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
@@ -75,8 +75,7 @@
<section>
<article>
- <pre class="prettyprint source linenums"><code>import setImmediate from &apos;./setImmediate.js&apos;
-import queue from &apos;./queue.js&apos;
+ <pre class="prettyprint source linenums"><code>import queue from &apos;./queue.js&apos;
import Heap from &apos;./internal/Heap.js&apos;
/**
@@ -96,54 +95,51 @@ import Heap from &apos;./internal/Heap.js&apos;
* @param {number} concurrency - An `integer` for determining how many `worker`
* functions should be run in parallel. If omitted, the concurrency defaults to
* `1`. If the concurrency is `0`, an error is thrown.
- * @returns {module:ControlFlow.QueueObject} A priorityQueue object to manage the tasks. There are two
+ * @returns {module:ControlFlow.QueueObject} A priorityQueue object to manage the tasks. There are three
* differences between `queue` and `priorityQueue` objects:
* * `push(task, priority, [callback])` - `priority` should be a number. If an
* array of `tasks` is given, all tasks will be assigned the same priority.
- * * The `unshift` method was removed.
+ * * `pushAsync(task, priority, [callback])` - the same as `priorityQueue.push`,
+ * except this returns a promise that rejects if an error occurs.
+ * * The `unshift` and `unshiftAsync` methods were removed.
*/
export default function(worker, concurrency) {
// Start with a normal queue
var q = queue(worker, concurrency);
- var processingScheduled = false;
+
+ var {
+ push,
+ pushAsync
+ } = q;
q._tasks = new Heap();
+ q._createTaskItem = ({data, priority}, callback) =&gt; {
+ return {
+ data,
+ priority,
+ callback
+ };
+ };
- // Override push to accept second parameter representing priority
- q.push = function(data, priority = 0, callback = () =&gt; {}) {
- if (typeof callback !== &apos;function&apos;) {
- throw new Error(&apos;task callback must be a function&apos;);
- }
- q.started = true;
- if (!Array.isArray(data)) {
- data = [data];
- }
- if (data.length === 0 &amp;&amp; q.idle()) {
- // call drain immediately if there are no tasks
- return setImmediate(() =&gt; q.drain());
+ function createDataItems(tasks, priority) {
+ if (!Array.isArray(tasks)) {
+ return {data: tasks, priority};
}
+ return tasks.map(data =&gt; { return {data, priority}; });
+ }
- for (var i = 0, l = data.length; i &lt; l; i++) {
- var item = {
- data: data[i],
- priority,
- callback
- };
-
- q._tasks.push(item);
- }
+ // Override push to accept second parameter representing priority
+ q.push = function(data, priority = 0, callback) {
+ return push(createDataItems(data, priority), callback);
+ };
- if (!processingScheduled) {
- processingScheduled = true;
- setImmediate(() =&gt; {
- processingScheduled = false;
- q.process();
- });
- }
+ q.pushAsync = function(data, priority = 0, callback) {
+ return pushAsync(createDataItems(data, priority), callback);
};
- // Remove unshift function
+ // Remove unshift functions
delete q.unshift;
+ delete q.unshiftAsync;
return q;
}
diff --git a/docs/v3/queue.js.html b/docs/v3/queue.js.html
index e9bd4a7..af0031c 100644
--- a/docs/v3/queue.js.html
+++ b/docs/v3/queue.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/race.js.html b/docs/v3/race.js.html
index b941ab0..d3f19a2 100644
--- a/docs/v3/race.js.html
+++ b/docs/v3/race.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
@@ -95,7 +95,7 @@ import awaitify from &apos;./internal/awaitify.js&apos;
* @param {Function} callback - A callback to run once any of the functions have
* completed. This function gets an error or result from the first function that
* completed. Invoked with (err, result).
- * @returns undefined
+ * @returns {Promise} a promise, if a callback is omitted
* @example
*
* async.race([
diff --git a/docs/v3/reduce.js.html b/docs/v3/reduce.js.html
index 10f2978..990b11f 100644
--- a/docs/v3/reduce.js.html
+++ b/docs/v3/reduce.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/reduceRight.js.html b/docs/v3/reduceRight.js.html
index 5c494a1..724929b 100644
--- a/docs/v3/reduceRight.js.html
+++ b/docs/v3/reduceRight.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/reflect.js.html b/docs/v3/reflect.js.html
index bfd39b8..26db4d7 100644
--- a/docs/v3/reflect.js.html
+++ b/docs/v3/reflect.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/reflectAll.js.html b/docs/v3/reflectAll.js.html
index fd62692..b3203a6 100644
--- a/docs/v3/reflectAll.js.html
+++ b/docs/v3/reflectAll.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/reject.js.html b/docs/v3/reject.js.html
index 2c57547..720faf9 100644
--- a/docs/v3/reject.js.html
+++ b/docs/v3/reject.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/rejectLimit.js.html b/docs/v3/rejectLimit.js.html
index 9814be4..8dae2b7 100644
--- a/docs/v3/rejectLimit.js.html
+++ b/docs/v3/rejectLimit.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/rejectSeries.js.html b/docs/v3/rejectSeries.js.html
index b9f8eb7..b504b3e 100644
--- a/docs/v3/rejectSeries.js.html
+++ b/docs/v3/rejectSeries.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/retry.js.html b/docs/v3/retry.js.html
index 567b175..c27c76d 100644
--- a/docs/v3/retry.js.html
+++ b/docs/v3/retry.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/retryable.js.html b/docs/v3/retryable.js.html
index 3ac2fa8..f5d55f8 100644
--- a/docs/v3/retryable.js.html
+++ b/docs/v3/retryable.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/scripts/async.js b/docs/v3/scripts/async.js
index 832ca57..8d5e782 100644
--- a/docs/v3/scripts/async.js
+++ b/docs/v3/scripts/async.js
@@ -1512,12 +1512,11 @@
res(args);
}
- var item = {
+ var item = q._createTaskItem(
data,
- callback: rejectOnError ?
- promiseCallback :
+ rejectOnError ? promiseCallback :
(callback || promiseCallback)
- };
+ );
if (insertAtFront) {
q._tasks.unshift(item);
@@ -1599,6 +1598,12 @@
var isProcessing = false;
var q = {
_tasks: new DLL(),
+ _createTaskItem (data, callback) {
+ return {
+ data,
+ callback
+ };
+ },
*[Symbol.iterator] () {
yield* q._tasks[Symbol.iterator]();
},
@@ -2348,7 +2353,7 @@
* Result will be the first item in the array that passes the truth test
* (iteratee) or the value `undefined` if none passed. Invoked with
* (err, result).
- * @returns A Promise, if no callback is passed
+ * @returns {Promise} a promise, if a callback is omitted
* @example
*
* // dir1 is a directory that contains file1.txt, file2.txt
@@ -2420,7 +2425,7 @@
* Result will be the first item in the array that passes the truth test
* (iteratee) or the value `undefined` if none passed. Invoked with
* (err, result).
- * @returns a Promise if no callback is passed
+ * @returns {Promise} a promise, if a callback is omitted
*/
function detectLimit(coll, limit, iteratee, callback) {
return _createTester(bool => bool, (res, item) => item)(eachOfLimit(limit), coll, iteratee, callback)
@@ -2446,7 +2451,7 @@
* Result will be the first item in the array that passes the truth test
* (iteratee) or the value `undefined` if none passed. Invoked with
* (err, result).
- * @returns a Promise if no callback is passed
+ * @returns {Promise} a promise, if a callback is omitted
*/
function detectSeries(coll, iteratee, callback) {
return _createTester(bool => bool, (res, item) => item)(eachOfLimit(1), coll, iteratee, callback)
@@ -3662,7 +3667,7 @@
var nextTick = wrap(_defer$1);
- var _parallel = awaitify((eachfn, tasks, callback) => {
+ var parallel = awaitify((eachfn, tasks, callback) => {
var results = isArrayLike(tasks) ? [] : {};
eachfn(tasks, (task, key, taskCb) => {
@@ -3835,8 +3840,8 @@
* }
*
*/
- function parallel(tasks, callback) {
- return _parallel(eachOf$1, tasks, callback);
+ function parallel$1(tasks, callback) {
+ return parallel(eachOf$1, tasks, callback);
}
/**
@@ -3860,7 +3865,7 @@
* @returns {Promise} a promise, if a callback is not passed
*/
function parallelLimit(tasks, limit, callback) {
- return _parallel(eachOfLimit(limit), tasks, callback);
+ return parallel(eachOfLimit(limit), tasks, callback);
}
/**
@@ -4144,54 +4149,51 @@
* @param {number} concurrency - An `integer` for determining how many `worker`
* functions should be run in parallel. If omitted, the concurrency defaults to
* `1`. If the concurrency is `0`, an error is thrown.
- * @returns {module:ControlFlow.QueueObject} A priorityQueue object to manage the tasks. There are two
+ * @returns {module:ControlFlow.QueueObject} A priorityQueue object to manage the tasks. There are three
* differences between `queue` and `priorityQueue` objects:
* * `push(task, priority, [callback])` - `priority` should be a number. If an
* array of `tasks` is given, all tasks will be assigned the same priority.
- * * The `unshift` method was removed.
+ * * `pushAsync(task, priority, [callback])` - the same as `priorityQueue.push`,
+ * except this returns a promise that rejects if an error occurs.
+ * * The `unshift` and `unshiftAsync` methods were removed.
*/
function priorityQueue(worker, concurrency) {
// Start with a normal queue
var q = queue$1(worker, concurrency);
- var processingScheduled = false;
+
+ var {
+ push,
+ pushAsync
+ } = q;
q._tasks = new Heap();
+ q._createTaskItem = ({data, priority}, callback) => {
+ return {
+ data,
+ priority,
+ callback
+ };
+ };
- // Override push to accept second parameter representing priority
- q.push = function(data, priority = 0, callback = () => {}) {
- if (typeof callback !== 'function') {
- throw new Error('task callback must be a function');
+ function createDataItems(tasks, priority) {
+ if (!Array.isArray(tasks)) {
+ return {data: tasks, priority};
}
- q.started = true;
- if (!Array.isArray(data)) {
- data = [data];
- }
- if (data.length === 0 && q.idle()) {
- // call drain immediately if there are no tasks
- return setImmediate$1(() => q.drain());
- }
-
- for (var i = 0, l = data.length; i < l; i++) {
- var item = {
- data: data[i],
- priority,
- callback
- };
+ return tasks.map(data => { return {data, priority}; });
+ }
- q._tasks.push(item);
- }
+ // Override push to accept second parameter representing priority
+ q.push = function(data, priority = 0, callback) {
+ return push(createDataItems(data, priority), callback);
+ };
- if (!processingScheduled) {
- processingScheduled = true;
- setImmediate$1(() => {
- processingScheduled = false;
- q.process();
- });
- }
+ q.pushAsync = function(data, priority = 0, callback) {
+ return pushAsync(createDataItems(data, priority), callback);
};
- // Remove unshift function
+ // Remove unshift functions
delete q.unshift;
+ delete q.unshiftAsync;
return q;
}
@@ -4212,7 +4214,7 @@
* @param {Function} callback - A callback to run once any of the functions have
* completed. This function gets an error or result from the first function that
* completed. Invoked with (err, result).
- * @returns undefined
+ * @returns {Promise} a promise, if a callback is omitted
* @example
*
* async.race([
@@ -4905,7 +4907,7 @@
*
*/
function series(tasks, callback) {
- return _parallel(eachOfSeries$1, tasks, callback);
+ return parallel(eachOfSeries$1, tasks, callback);
}
/**
@@ -5737,7 +5739,7 @@
* @param {Function} [callback] - An optional callback to run once all the
* functions have completed. This will be passed the results of the last task's
* callback. Invoked with (err, [results]).
- * @returns undefined
+ * @returns {Promise} a promise, if a callback is omitted
* @example
*
* async.waterfall([
@@ -5885,7 +5887,7 @@
mapValuesSeries,
memoize,
nextTick,
- parallel,
+ parallel: parallel$1,
parallelLimit,
priorityQueue,
queue: queue$1,
@@ -5993,7 +5995,7 @@
exports.mapValuesSeries = mapValuesSeries;
exports.memoize = memoize;
exports.nextTick = nextTick;
- exports.parallel = parallel;
+ exports.parallel = parallel$1;
exports.parallelLimit = parallelLimit;
exports.priorityQueue = priorityQueue;
exports.queue = queue$1;
diff --git a/docs/v3/seq.js.html b/docs/v3/seq.js.html
index c9b1c26..7479b8f 100644
--- a/docs/v3/seq.js.html
+++ b/docs/v3/seq.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/series.js.html b/docs/v3/series.js.html
index aa185c6..6ec1081 100644
--- a/docs/v3/series.js.html
+++ b/docs/v3/series.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/setImmediate.js.html b/docs/v3/setImmediate.js.html
index 0611ae9..3e297aa 100644
--- a/docs/v3/setImmediate.js.html
+++ b/docs/v3/setImmediate.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/some.js.html b/docs/v3/some.js.html
index 807772a..06f6802 100644
--- a/docs/v3/some.js.html
+++ b/docs/v3/some.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/someLimit.js.html b/docs/v3/someLimit.js.html
index f08b7db..cf6619a 100644
--- a/docs/v3/someLimit.js.html
+++ b/docs/v3/someLimit.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/someSeries.js.html b/docs/v3/someSeries.js.html
index 708aaf1..f2fec5d 100644
--- a/docs/v3/someSeries.js.html
+++ b/docs/v3/someSeries.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/sortBy.js.html b/docs/v3/sortBy.js.html
index ed94c66..282ba31 100644
--- a/docs/v3/sortBy.js.html
+++ b/docs/v3/sortBy.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/timeout.js.html b/docs/v3/timeout.js.html
index 5182c0c..5c675f1 100644
--- a/docs/v3/timeout.js.html
+++ b/docs/v3/timeout.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/times.js.html b/docs/v3/times.js.html
index 294ed4b..9fba445 100644
--- a/docs/v3/times.js.html
+++ b/docs/v3/times.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/timesLimit.js.html b/docs/v3/timesLimit.js.html
index 4ab9d2d..5d81708 100644
--- a/docs/v3/timesLimit.js.html
+++ b/docs/v3/timesLimit.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/timesSeries.js.html b/docs/v3/timesSeries.js.html
index 9692853..dc6f096 100644
--- a/docs/v3/timesSeries.js.html
+++ b/docs/v3/timesSeries.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/transform.js.html b/docs/v3/transform.js.html
index 5bc58bd..9d333ea 100644
--- a/docs/v3/transform.js.html
+++ b/docs/v3/transform.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/tryEach.js.html b/docs/v3/tryEach.js.html
index b4bafc8..60996d8 100644
--- a/docs/v3/tryEach.js.html
+++ b/docs/v3/tryEach.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/unmemoize.js.html b/docs/v3/unmemoize.js.html
index 67bd8ca..d2022c7 100644
--- a/docs/v3/unmemoize.js.html
+++ b/docs/v3/unmemoize.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/until.js.html b/docs/v3/until.js.html
index a0a2bf1..d5e7c6e 100644
--- a/docs/v3/until.js.html
+++ b/docs/v3/until.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
diff --git a/docs/v3/waterfall.js.html b/docs/v3/waterfall.js.html
index c72b1d5..5e2986d 100644
--- a/docs/v3/waterfall.js.html
+++ b/docs/v3/waterfall.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>
@@ -98,7 +98,7 @@ import awaitify from &apos;./internal/awaitify.js&apos;
* @param {Function} [callback] - An optional callback to run once all the
* functions have completed. This will be passed the results of the last task&apos;s
* callback. Invoked with (err, [results]).
- * @returns undefined
+ * @returns {Promise} a promise, if a callback is omitted
* @example
*
* async.waterfall([
diff --git a/docs/v3/whilst.js.html b/docs/v3/whilst.js.html
index 98a6f59..67a275b 100644
--- a/docs/v3/whilst.js.html
+++ b/docs/v3/whilst.js.html
@@ -30,7 +30,7 @@
</div>
<ul class="nav navbar-nav">
<li id="version-dropdown" class="dropdown">
- <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.3 <span class="caret"></span>
+ <a href="#" class="dropdown-toggle vertically-centered" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">v3.2.4 <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="../v3/">v3.0.x</a></li>