/
var
/
www
/
qr4y.com
/
server
/
delivery
/
node_modules
/
async
/
/var/www/qr4y.com/server/delivery/node_modules/async
mkdir
upload
Name
Size
Mode
Actions
dist/
-
0755
rm
internal/
-
0755
rm
all.js
3558
0644
edit
dl
rm
allLimit.js
1750
0644
edit
dl
rm
allSeries.js
1644
0644
edit
dl
rm
any.js
3802
0644
edit
dl
rm
anyLimit.js
1785
0644
edit
dl
rm
anySeries.js
1679
0644
edit
dl
rm
apply.js
3121
0644
edit
dl
rm
applyEach.js
1989
0644
edit
dl
rm
applyEachSeries.js
1303
0644
edit
dl
rm
asyncify.js
3739
0644
edit
dl
rm
auto.js
11856
0644
edit
dl
rm
autoInject.js
7092
0644
edit
dl
rm
bower.json
239
0644
edit
dl
rm
cargo.js
2745
0644
edit
dl
rm
cargoQueue.js
3351
0644
edit
dl
rm
CHANGELOG.md
33377
0644
edit
dl
rm
compose.js
1564
0644
edit
dl
rm
concat.js
3651
0644
edit
dl
rm
concatLimit.js
2096
0644
edit
dl
rm
concatSeries.js
1473
0644
edit
dl
rm
constant.js
2977
0644
edit
dl
rm
detect.js
3248
0644
edit
dl
rm
detectLimit.js
1834
0644
edit
dl
rm
detectSeries.js
1740
0644
edit
dl
rm
dir.js
1297
0644
edit
dl
rm
doDuring.js
2303
0644
edit
dl
rm
doUntil.js
1706
0644
edit
dl
rm
doWhilst.js
2303
0644
edit
dl
rm
during.js
2333
0644
edit
dl
rm
each.js
4024
0644
edit
dl
rm
eachLimit.js
1789
0644
edit
dl
rm
eachOf.js
5746
0644
edit
dl
rm
eachOfLimit.js
1637
0644
edit
dl
rm
eachOfSeries.js
1329
0644
edit
dl
rm
eachSeries.js
1575
0644
edit
dl
rm
ensureAsync.js
2314
0644
edit
dl
rm
every.js
3558
0644
edit
dl
rm
everyLimit.js
1750
0644
edit
dl
rm
everySeries.js
1644
0644
edit
dl
rm
filter.js
2897
0644
edit
dl
rm
filterLimit.js
1654
0644
edit
dl
rm
filterSeries.js
1546
0644
edit
dl
rm
find.js
3248
0644
edit
dl
rm
findLimit.js
1834
0644
edit
dl
rm
findSeries.js
1740
0644
edit
dl
rm
flatMap.js
3651
0644
edit
dl
rm
flatMapLimit.js
2096
0644
edit
dl
rm
flatMapSeries.js
1473
0644
edit
dl
rm
foldl.js
4881
0644
edit
dl
rm
foldr.js
1498
0644
edit
dl
rm
forEach.js
4024
0644
edit
dl
rm
forEachLimit.js
1789
0644
edit
dl
rm
forEachOf.js
5746
0644
edit
dl
rm
forEachOfLimit.js
1637
0644
edit
dl
rm
forEachOfSeries.js
1329
0644
edit
dl
rm
forEachSeries.js
1575
0644
edit
dl
rm
forever.js
2121
0644
edit
dl
rm
groupBy.js
3597
0644
edit
dl
rm
groupByLimit.js
2449
0644
edit
dl
rm
groupBySeries.js
1330
0644
edit
dl
rm
index.js
19730
0644
edit
dl
rm
inject.js
4881
0644
edit
dl
rm
LICENSE
1063
0644
edit
dl
rm
log.js
1197
0644
edit
dl
rm
map.js
4595
0644
edit
dl
rm
mapLimit.js
1619
0644
edit
dl
rm
mapSeries.js
1514
0644
edit
dl
rm
mapValues.js
4589
0644
edit
dl
rm
mapValuesLimit.js
2120
0644
edit
dl
rm
mapValuesSeries.js
1377
0644
edit
dl
rm
memoize.js
3073
0644
edit
dl
rm
nextTick.js
1478
0644
edit
dl
rm
package.json
2998
0644
edit
dl
rm
parallel.js
5573
0644
edit
dl
rm
parallelLimit.js
1510
0644
edit
dl
rm
priorityQueue.js
2712
0644
edit
dl
rm
queue.js
7380
0644
edit
dl
rm
race.js
2135
0644
edit
dl
rm
README.md
3216
0644
edit
dl
rm
reduce.js
4881
0644
edit
dl
rm
reduceRight.js
1498
0644
edit
dl
rm
reflect.js
2269
0644
edit
dl
rm
reflectAll.js
2452
0644
edit
dl
rm
reject.js
2675
0644
edit
dl
rm
rejectLimit.js
1577
0644
edit
dl
rm
rejectSeries.js
1469
0644
edit
dl
rm
retry.js
5527
0644
edit
dl
rm
retryable.js
2538
0644
edit
dl
rm
select.js
2897
0644
edit
dl
rm
selectLimit.js
1654
0644
edit
dl
rm
selectSeries.js
1546
0644
edit
dl
rm
seq.js
2656
0644
edit
dl
rm
series.js
5822
0644
edit
dl
rm
setImmediate.js
1392
0644
edit
dl
rm
some.js
3802
0644
edit
dl
rm
someLimit.js
1785
0644
edit
dl
rm
someSeries.js
1679
0644
edit
dl
rm
sortBy.js
6213
0644
edit
dl
rm
timeout.js
2758
0644
edit
dl
rm
times.js
1486
0644
edit
dl
rm
timesLimit.js
1448
0644
edit
dl
rm
timesSeries.js
1060
0644
edit
dl
rm
transform.js
5566
0644
edit
dl
rm
tryEach.js
2543
0644
edit
dl
rm
unmemoize.js
668
0644
edit
dl
rm
until.js
2077
0644
edit
dl
rm
waterfall.js
3206
0644
edit
dl
rm
whilst.js
2333
0644
edit
dl
rm
wrapSync.js
3739
0644
edit
dl
rm
Edit:
/var/www/qr4y.com/server/delivery/node_modules/async/queue.js
(7380B)
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = function (worker, concurrency) { var _worker = (0, _wrapAsync2.default)(worker); return (0, _queue2.default)((items, cb) => { _worker(items[0], cb); }, concurrency, 1); }; var _queue = require('./internal/queue.js'); var _queue2 = _interopRequireDefault(_queue); var _wrapAsync = require('./internal/wrapAsync.js'); var _wrapAsync2 = _interopRequireDefault(_wrapAsync); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } module.exports = exports['default']; /** * A queue of tasks for the worker function to complete. * @typedef {Iterable} QueueObject * @memberOf module:ControlFlow * @property {Function} length - a function returning the number of items * waiting to be processed. Invoke with `queue.length()`. * @property {boolean} started - a boolean indicating whether or not any * items have been pushed and processed by the queue. * @property {Function} running - a function returning the number of items * currently being processed. Invoke with `queue.running()`. * @property {Function} workersList - a function returning the array of items * currently being processed. Invoke with `queue.workersList()`. * @property {Function} idle - a function returning false if there are items * waiting or being processed, or true if not. Invoke with `queue.idle()`. * @property {number} concurrency - an integer for determining how many `worker` * functions should be run in parallel. This property can be changed after a * `queue` is created to alter the concurrency on-the-fly. * @property {number} payload - an integer that specifies how many items are * passed to the worker function at a time. only applies if this is a * [cargo]{@link module:ControlFlow.cargo} object * @property {AsyncFunction} push - add a new task to the `queue`. Calls `callback` * once the `worker` has finished processing the task. Instead of a single task, * a `tasks` array can be submitted. The respective callback is used for every * task in the list. Invoke with `queue.push(task, [callback])`, * @property {AsyncFunction} unshift - add a new task to the front of the `queue`. * Invoke with `queue.unshift(task, [callback])`. * @property {AsyncFunction} pushAsync - the same as `q.push`, except this returns * a promise that rejects if an error occurs. * @property {AsyncFunction} unshiftAsync - the same as `q.unshift`, except this returns * a promise that rejects if an error occurs. * @property {Function} remove - remove items from the queue that match a test * function. The test function will be passed an object with a `data` property, * and a `priority` property, if this is a * [priorityQueue]{@link module:ControlFlow.priorityQueue} object. * Invoked with `queue.remove(testFn)`, where `testFn` is of the form * `function ({data, priority}) {}` and returns a Boolean. * @property {Function} saturated - a function that sets a callback that is * called when the number of running workers hits the `concurrency` limit, and * further tasks will be queued. If the callback is omitted, `q.saturated()` * returns a promise for the next occurrence. * @property {Function} unsaturated - a function that sets a callback that is * called when the number of running workers is less than the `concurrency` & * `buffer` limits, and further tasks will not be queued. If the callback is * omitted, `q.unsaturated()` returns a promise for the next occurrence. * @property {number} buffer - A minimum threshold buffer in order to say that * the `queue` is `unsaturated`. * @property {Function} empty - a function that sets a callback that is called * when the last item from the `queue` is given to a `worker`. If the callback * is omitted, `q.empty()` returns a promise for the next occurrence. * @property {Function} drain - a function that sets a callback that is called * when the last item from the `queue` has returned from the `worker`. If the * callback is omitted, `q.drain()` returns a promise for the next occurrence. * @property {Function} error - a function that sets a callback that is called * when a task errors. Has the signature `function(error, task)`. If the * callback is omitted, `error()` returns a promise that rejects on the next * error. * @property {boolean} paused - a boolean for determining whether the queue is * in a paused state. * @property {Function} pause - a function that pauses the processing of tasks * until `resume()` is called. Invoke with `queue.pause()`. * @property {Function} resume - a function that resumes the processing of * queued tasks when the queue is paused. Invoke with `queue.resume()`. * @property {Function} kill - a function that removes the `drain` callback and * empties remaining tasks from the queue forcing it to go idle. No more tasks * should be pushed to the queue after calling this function. Invoke with `queue.kill()`. * * @example * const q = async.queue(worker, 2) * q.push(item1) * q.push(item2) * q.push(item3) * // queues are iterable, spread into an array to inspect * const items = [...q] // [item1, item2, item3] * // or use for of * for (let item of q) { * console.log(item) * } * * q.drain(() => { * console.log('all done') * }) * // or * await q.drain() */ /** * Creates a `queue` object with the specified `concurrency`. Tasks added to the * `queue` are processed in parallel (up to the `concurrency` limit). If all * `worker`s are in progress, the task is queued until one becomes available. * Once a `worker` completes a `task`, that `task`'s callback is called. * * @name queue * @static * @memberOf module:ControlFlow * @method * @category Control Flow * @param {AsyncFunction} worker - An async function for processing a queued task. * If you want to handle errors from an individual task, pass a callback to * `q.push()`. Invoked with (task, callback). * @param {number} [concurrency=1] - 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 queue object to manage the tasks. Callbacks can be * attached as certain properties to listen for specific events during the * lifecycle of the queue. * @example * * // create a queue object with concurrency 2 * var q = async.queue(function(task, callback) { * console.log('hello ' + task.name); * callback(); * }, 2); * * // assign a callback * q.drain(function() { * console.log('all items have been processed'); * }); * // or await the end * await q.drain() * * // assign an error callback * q.error(function(err, task) { * console.error('task experienced an error'); * }); * * // add some items to the queue * q.push({name: 'foo'}, function(err) { * console.log('finished processing foo'); * }); * // callback is optional * q.push({name: 'bar'}); * * // add some items to the queue (batch-wise) * q.push([{name: 'baz'},{name: 'bay'},{name: 'bax'}], function(err) { * console.log('finished processing item'); * }); * * // add some items to the front of the queue * q.unshift({name: 'bar'}, function (err) { * console.log('finished processing bar'); * }); */
Save
cmd:
run