/
usr
/
lib
/
node_modules
/
pm2
/
node_modules
/
async
/
/usr/lib/node_modules/pm2/node_modules/async
mkdir
upload
Name
Size
Mode
Actions
dist/
-
0755
rm
internal/
-
0755
rm
all.js
1838
0644
edit
dl
rm
allLimit.js
1741
0644
edit
dl
rm
allSeries.js
1635
0644
edit
dl
rm
any.js
1904
0644
edit
dl
rm
anyLimit.js
1776
0644
edit
dl
rm
anySeries.js
1670
0644
edit
dl
rm
apply.js
3121
0644
edit
dl
rm
applyEach.js
1983
0644
edit
dl
rm
applyEachSeries.js
1297
0644
edit
dl
rm
asyncify.js
3730
0644
edit
dl
rm
auto.js
9336
0644
edit
dl
rm
autoInject.js
6241
0644
edit
dl
rm
bower.json
239
0644
edit
dl
rm
cargo.js
2742
0644
edit
dl
rm
cargoQueue.js
3348
0644
edit
dl
rm
CHANGELOG.md
32822
0644
edit
dl
rm
compose.js
1561
0644
edit
dl
rm
concat.js
1735
0644
edit
dl
rm
concatLimit.js
2087
0644
edit
dl
rm
concatSeries.js
1467
0644
edit
dl
rm
constant.js
2977
0644
edit
dl
rm
detect.js
2225
0644
edit
dl
rm
detectLimit.js
1814
0644
edit
dl
rm
detectSeries.js
1720
0644
edit
dl
rm
dir.js
1294
0644
edit
dl
rm
doDuring.js
2294
0644
edit
dl
rm
doUntil.js
1700
0644
edit
dl
rm
doWhilst.js
2294
0644
edit
dl
rm
during.js
2324
0644
edit
dl
rm
each.js
3046
0644
edit
dl
rm
eachLimit.js
1777
0644
edit
dl
rm
eachOf.js
3577
0644
edit
dl
rm
eachOfLimit.js
1628
0644
edit
dl
rm
eachOfSeries.js
1323
0644
edit
dl
rm
eachSeries.js
1569
0644
edit
dl
rm
ensureAsync.js
2308
0644
edit
dl
rm
every.js
1838
0644
edit
dl
rm
everyLimit.js
1741
0644
edit
dl
rm
everySeries.js
1635
0644
edit
dl
rm
filter.js
1787
0644
edit
dl
rm
filterLimit.js
1645
0644
edit
dl
rm
filterSeries.js
1537
0644
edit
dl
rm
find.js
2225
0644
edit
dl
rm
findLimit.js
1814
0644
edit
dl
rm
findSeries.js
1720
0644
edit
dl
rm
flatMap.js
1735
0644
edit
dl
rm
flatMapLimit.js
2087
0644
edit
dl
rm
flatMapSeries.js
1467
0644
edit
dl
rm
foldl.js
2744
0644
edit
dl
rm
foldr.js
1494
0644
edit
dl
rm
forEach.js
3046
0644
edit
dl
rm
forEachLimit.js
1777
0644
edit
dl
rm
forEachOf.js
3577
0644
edit
dl
rm
forEachOfLimit.js
1628
0644
edit
dl
rm
forEachOfSeries.js
1323
0644
edit
dl
rm
forEachSeries.js
1569
0644
edit
dl
rm
forever.js
2109
0644
edit
dl
rm
groupBy.js
2177
0644
edit
dl
rm
groupByLimit.js
2440
0644
edit
dl
rm
groupBySeries.js
1328
0644
edit
dl
rm
index.js
19730
0644
edit
dl
rm
inject.js
2744
0644
edit
dl
rm
LICENSE
1063
0644
edit
dl
rm
log.js
1194
0644
edit
dl
rm
map.js
2339
0644
edit
dl
rm
mapLimit.js
1610
0644
edit
dl
rm
mapSeries.js
1505
0644
edit
dl
rm
mapValues.js
2274
0644
edit
dl
rm
mapValuesLimit.js
2108
0644
edit
dl
rm
mapValuesSeries.js
1374
0644
edit
dl
rm
memoize.js
3064
0644
edit
dl
rm
nextTick.js
1474
0644
edit
dl
rm
package.json
3351
0644
edit
dl
rm
parallel.js
3174
0644
edit
dl
rm
parallelLimit.js
1504
0644
edit
dl
rm
priorityQueue.js
2652
0644
edit
dl
rm
queue.js
7373
0644
edit
dl
rm
race.js
2090
0644
edit
dl
rm
README.md
3463
0644
edit
dl
rm
reduce.js
2744
0644
edit
dl
rm
reduceRight.js
1494
0644
edit
dl
rm
reflect.js
2263
0644
edit
dl
rm
reflectAll.js
2449
0644
edit
dl
rm
reject.js
1712
0644
edit
dl
rm
rejectLimit.js
1568
0644
edit
dl
rm
rejectSeries.js
1460
0644
edit
dl
rm
retry.js
5521
0644
edit
dl
rm
retryable.js
2526
0644
edit
dl
rm
select.js
1787
0644
edit
dl
rm
selectLimit.js
1645
0644
edit
dl
rm
selectSeries.js
1537
0644
edit
dl
rm
seq.js
2650
0644
edit
dl
rm
series.js
3017
0644
edit
dl
rm
setImmediate.js
1389
0644
edit
dl
rm
some.js
1904
0644
edit
dl
rm
someLimit.js
1776
0644
edit
dl
rm
someSeries.js
1670
0644
edit
dl
rm
sortBy.js
2741
0644
edit
dl
rm
timeout.js
2752
0644
edit
dl
rm
times.js
1483
0644
edit
dl
rm
timesLimit.js
1439
0644
edit
dl
rm
timesSeries.js
1057
0644
edit
dl
rm
transform.js
2754
0644
edit
dl
rm
tryEach.js
2534
0644
edit
dl
rm
unmemoize.js
668
0644
edit
dl
rm
until.js
2077
0644
edit
dl
rm
waterfall.js
3158
0644
edit
dl
rm
whilst.js
2324
0644
edit
dl
rm
wrapSync.js
3730
0644
edit
dl
rm
Edit:
/usr/lib/node_modules/pm2/node_modules/async/parallel.js
(3174B)
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = parallel; var _eachOf = require('./eachOf'); var _eachOf2 = _interopRequireDefault(_eachOf); var _parallel2 = require('./internal/parallel'); var _parallel3 = _interopRequireDefault(_parallel2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /** * Run the `tasks` collection of functions in parallel, without waiting until * the previous function has completed. If any of the functions pass an error to * its callback, the main `callback` is immediately called with the value of the * error. Once the `tasks` have completed, the results are passed to the final * `callback` as an array. * * **Note:** `parallel` is about kicking-off I/O tasks in parallel, not about * parallel execution of code. If your tasks do not use any timers or perform * any I/O, they will actually be executed in series. Any synchronous setup * sections for each task will happen one after the other. JavaScript remains * single-threaded. * * **Hint:** Use [`reflect`]{@link module:Utils.reflect} to continue the * execution of other tasks when a task fails. * * It is also possible to use an object instead of an array. Each property will * be run as a function and the results will be passed to the final `callback` * as an object instead of an array. This can be a more readable way of handling * results from {@link async.parallel}. * * @name parallel * @static * @memberOf module:ControlFlow * @method * @category Control Flow * @param {Array|Iterable|AsyncIterable|Object} tasks - A collection of * [async functions]{@link AsyncFunction} to run. * Each async function can complete with any number of optional `result` values. * @param {Function} [callback] - An optional callback to run once all the * functions have completed successfully. This function gets a results array * (or object) containing all the result arguments passed to the task callbacks. * Invoked with (err, results). * @returns {Promise} a promise, if a callback is not passed * * @example * async.parallel([ * function(callback) { * setTimeout(function() { * callback(null, 'one'); * }, 200); * }, * function(callback) { * setTimeout(function() { * callback(null, 'two'); * }, 100); * } * ], * // optional callback * function(err, results) { * // the results array will equal ['one','two'] even though * // the second function had a shorter timeout. * }); * * // an example using an object instead of an array * async.parallel({ * one: function(callback) { * setTimeout(function() { * callback(null, 1); * }, 200); * }, * two: function(callback) { * setTimeout(function() { * callback(null, 2); * }, 100); * } * }, function(err, results) { * // results is now equals to: {one: 1, two: 2} * }); */ function parallel(tasks, callback) { return (0, _parallel3.default)(_eachOf2.default, tasks, callback); } module.exports = exports['default'];
Save
cmd:
run