Skip to content

Commit ea7365a

Browse files
committed
Update built files
1 parent 2130a82 commit ea7365a

File tree

2 files changed

+14
-17
lines changed

2 files changed

+14
-17
lines changed

dist/async.js

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -217,11 +217,6 @@
217217
})
218218
}
219219

220-
Object.defineProperty(awaitable, 'name', {
221-
configurable: true, // allows redefining
222-
value: `awaitable(${asyncFn.name})`
223-
});
224-
225220
return awaitable
226221
}
227222

@@ -1557,7 +1552,7 @@
15571552
* @param {number} [payload=Infinity] - An optional `integer` for determining
15581553
* how many tasks should be processed per round; if omitted, the default is
15591554
* unlimited.
1560-
* @returns {module:ControlFlow.CargoObject} A cargoQueue object to manage the tasks. Callbacks can
1555+
* @returns {module:ControlFlow.QueueObject} A cargoQueue object to manage the tasks. Callbacks can
15611556
* attached as certain properties to listen for specific events during the
15621557
* lifecycle of the cargoQueue and inner queue.
15631558
* @example
@@ -2946,7 +2941,7 @@
29462941

29472942
var nextTick = wrap(_defer$1);
29482943

2949-
var _parallel = awaitify((eachfn, tasks, callback) => {
2944+
var parallel = awaitify((eachfn, tasks, callback) => {
29502945
var results = isArrayLike(tasks) ? [] : {};
29512946

29522947
eachfn(tasks, (task, key, taskCb) => {
@@ -3030,8 +3025,8 @@
30303025
* // results is now equals to: {one: 1, two: 2}
30313026
* });
30323027
*/
3033-
function parallel(tasks, callback) {
3034-
return _parallel(eachOf$1, tasks, callback);
3028+
function parallel$1(tasks, callback) {
3029+
return parallel(eachOf$1, tasks, callback);
30353030
}
30363031

30373032
/**
@@ -3055,7 +3050,7 @@
30553050
* @returns {Promise} a promise, if a callback is not passed
30563051
*/
30573052
function parallelLimit(tasks, limit, callback) {
3058-
return _parallel(eachOfLimit(limit), tasks, callback);
3053+
return parallel(eachOfLimit(limit), tasks, callback);
30593054
}
30603055

30613056
/**
@@ -3959,7 +3954,7 @@
39593954
* });
39603955
*/
39613956
function series(tasks, callback) {
3962-
return _parallel(eachOfSeries$1, tasks, callback);
3957+
return parallel(eachOfSeries$1, tasks, callback);
39633958
}
39643959

39653960
/**
@@ -4433,7 +4428,7 @@
44334428
*
44344429
* var count = 0;
44354430
* async.whilst(
4436-
* function test(cb) { cb(null, count < 5;) },
4431+
* function test(cb) { cb(null, count < 5); },
44374432
* function iter(callback) {
44384433
* count++;
44394434
* setTimeout(function() {
@@ -4494,13 +4489,15 @@
44944489
*
44954490
* @example
44964491
* const results = []
4492+
* let finished = false
44974493
* async.until(function test(page, cb) {
4498-
* cb(null, page.next == null)
4494+
* cb(null, finished)
44994495
* }, function iter(next) {
45004496
* fetchPage(url, (err, body) => {
45014497
* if (err) return next(err)
45024498
* results = results.concat(body.objects)
4503-
* next(err, body)
4499+
* finished = !!body.next
4500+
* next(err)
45044501
* })
45054502
* }, function done (err) {
45064503
* // all pages have been fetched
@@ -4677,7 +4674,7 @@
46774674
mapValuesSeries,
46784675
memoize,
46794676
nextTick,
4680-
parallel,
4677+
parallel: parallel$1,
46814678
parallelLimit,
46824679
priorityQueue,
46834680
queue: queue$1,
@@ -4785,7 +4782,7 @@
47854782
exports.mapValuesSeries = mapValuesSeries;
47864783
exports.memoize = memoize;
47874784
exports.nextTick = nextTick;
4788-
exports.parallel = parallel;
4785+
exports.parallel = parallel$1;
47894786
exports.parallelLimit = parallelLimit;
47904787
exports.priorityQueue = priorityQueue;
47914788
exports.queue = queue$1;

0 commit comments

Comments
 (0)