NuclearDispersionSystem/ant-design-vue-jeecg/node_modules/async
2023-09-14 14:47:11 +08:00
..
internal 111 2023-09-14 14:47:11 +08:00
all.js 111 2023-09-14 14:47:11 +08:00
allLimit.js 111 2023-09-14 14:47:11 +08:00
allSeries.js 111 2023-09-14 14:47:11 +08:00
any.js 111 2023-09-14 14:47:11 +08:00
anyLimit.js 111 2023-09-14 14:47:11 +08:00
anySeries.js 111 2023-09-14 14:47:11 +08:00
apply.js 111 2023-09-14 14:47:11 +08:00
applyEach.js 111 2023-09-14 14:47:11 +08:00
applyEachSeries.js 111 2023-09-14 14:47:11 +08:00
asyncify.js 111 2023-09-14 14:47:11 +08:00
auto.js 111 2023-09-14 14:47:11 +08:00
autoInject.js 111 2023-09-14 14:47:11 +08:00
bower.json 111 2023-09-14 14:47:11 +08:00
cargo.js 111 2023-09-14 14:47:11 +08:00
CHANGELOG.md 111 2023-09-14 14:47:11 +08:00
compose.js 111 2023-09-14 14:47:11 +08:00
concat.js 111 2023-09-14 14:47:11 +08:00
concatLimit.js 111 2023-09-14 14:47:11 +08:00
concatSeries.js 111 2023-09-14 14:47:11 +08:00
constant.js 111 2023-09-14 14:47:11 +08:00
detect.js 111 2023-09-14 14:47:11 +08:00
detectLimit.js 111 2023-09-14 14:47:11 +08:00
detectSeries.js 111 2023-09-14 14:47:11 +08:00
dir.js 111 2023-09-14 14:47:11 +08:00
doDuring.js 111 2023-09-14 14:47:11 +08:00
doUntil.js 111 2023-09-14 14:47:11 +08:00
doWhilst.js 111 2023-09-14 14:47:11 +08:00
during.js 111 2023-09-14 14:47:11 +08:00
each.js 111 2023-09-14 14:47:11 +08:00
eachLimit.js 111 2023-09-14 14:47:11 +08:00
eachOf.js 111 2023-09-14 14:47:11 +08:00
eachOfLimit.js 111 2023-09-14 14:47:11 +08:00
eachOfSeries.js 111 2023-09-14 14:47:11 +08:00
eachSeries.js 111 2023-09-14 14:47:11 +08:00
ensureAsync.js 111 2023-09-14 14:47:11 +08:00
every.js 111 2023-09-14 14:47:11 +08:00
everyLimit.js 111 2023-09-14 14:47:11 +08:00
everySeries.js 111 2023-09-14 14:47:11 +08:00
filter.js 111 2023-09-14 14:47:11 +08:00
filterLimit.js 111 2023-09-14 14:47:11 +08:00
filterSeries.js 111 2023-09-14 14:47:11 +08:00
find.js 111 2023-09-14 14:47:11 +08:00
findLimit.js 111 2023-09-14 14:47:11 +08:00
findSeries.js 111 2023-09-14 14:47:11 +08:00
foldl.js 111 2023-09-14 14:47:11 +08:00
foldr.js 111 2023-09-14 14:47:11 +08:00
forEach.js 111 2023-09-14 14:47:11 +08:00
forEachLimit.js 111 2023-09-14 14:47:11 +08:00
forEachOf.js 111 2023-09-14 14:47:11 +08:00
forEachOfLimit.js 111 2023-09-14 14:47:11 +08:00
forEachOfSeries.js 111 2023-09-14 14:47:11 +08:00
forEachSeries.js 111 2023-09-14 14:47:11 +08:00
forever.js 111 2023-09-14 14:47:11 +08:00
groupBy.js 111 2023-09-14 14:47:11 +08:00
groupByLimit.js 111 2023-09-14 14:47:11 +08:00
groupBySeries.js 111 2023-09-14 14:47:11 +08:00
index.js 111 2023-09-14 14:47:11 +08:00
inject.js 111 2023-09-14 14:47:11 +08:00
LICENSE 111 2023-09-14 14:47:11 +08:00
log.js 111 2023-09-14 14:47:11 +08:00
map.js 111 2023-09-14 14:47:11 +08:00
mapLimit.js 111 2023-09-14 14:47:11 +08:00
mapSeries.js 111 2023-09-14 14:47:11 +08:00
mapValues.js 111 2023-09-14 14:47:11 +08:00
mapValuesLimit.js 111 2023-09-14 14:47:11 +08:00
mapValuesSeries.js 111 2023-09-14 14:47:11 +08:00
memoize.js 111 2023-09-14 14:47:11 +08:00
nextTick.js 111 2023-09-14 14:47:11 +08:00
package.json 111 2023-09-14 14:47:11 +08:00
parallel.js 111 2023-09-14 14:47:11 +08:00
parallelLimit.js 111 2023-09-14 14:47:11 +08:00
priorityQueue.js 111 2023-09-14 14:47:11 +08:00
queue.js 111 2023-09-14 14:47:11 +08:00
race.js 111 2023-09-14 14:47:11 +08:00
README.md 111 2023-09-14 14:47:11 +08:00
reduce.js 111 2023-09-14 14:47:11 +08:00
reduceRight.js 111 2023-09-14 14:47:11 +08:00
reflect.js 111 2023-09-14 14:47:11 +08:00
reflectAll.js 111 2023-09-14 14:47:11 +08:00
reject.js 111 2023-09-14 14:47:11 +08:00
rejectLimit.js 111 2023-09-14 14:47:11 +08:00
rejectSeries.js 111 2023-09-14 14:47:11 +08:00
retry.js 111 2023-09-14 14:47:11 +08:00
retryable.js 111 2023-09-14 14:47:11 +08:00
select.js 111 2023-09-14 14:47:11 +08:00
selectLimit.js 111 2023-09-14 14:47:11 +08:00
selectSeries.js 111 2023-09-14 14:47:11 +08:00
seq.js 111 2023-09-14 14:47:11 +08:00
series.js 111 2023-09-14 14:47:11 +08:00
setImmediate.js 111 2023-09-14 14:47:11 +08:00
some.js 111 2023-09-14 14:47:11 +08:00
someLimit.js 111 2023-09-14 14:47:11 +08:00
someSeries.js 111 2023-09-14 14:47:11 +08:00
sortBy.js 111 2023-09-14 14:47:11 +08:00
timeout.js 111 2023-09-14 14:47:11 +08:00
times.js 111 2023-09-14 14:47:11 +08:00
timesLimit.js 111 2023-09-14 14:47:11 +08:00
timesSeries.js 111 2023-09-14 14:47:11 +08:00
transform.js 111 2023-09-14 14:47:11 +08:00
tryEach.js 111 2023-09-14 14:47:11 +08:00
unmemoize.js 111 2023-09-14 14:47:11 +08:00
until.js 111 2023-09-14 14:47:11 +08:00
waterfall.js 111 2023-09-14 14:47:11 +08:00
whilst.js 111 2023-09-14 14:47:11 +08:00
wrapSync.js 111 2023-09-14 14:47:11 +08:00

Async Logo

Build Status via Travis CI NPM version Coverage Status Join the chat at https://gitter.im/caolan/async libhive - Open source examples jsDelivr Hits

Async is a utility module which provides straight-forward, powerful functions for working with asynchronous JavaScript. Although originally designed for use with Node.js and installable via npm install --save async, it can also be used directly in the browser.

This version of the package is optimized for the Node.js environment. If you use Async with webpack, install async-es instead.

For Documentation, visit https://caolan.github.io/async/

For Async v1.5.x documentation, go HERE

// for use with Node-style callbacks...
var async = require("async");

var obj = {dev: "/dev.json", test: "/test.json", prod: "/prod.json"};
var configs = {};

async.forEachOf(obj, (value, key, callback) => {
    fs.readFile(__dirname + value, "utf8", (err, data) => {
        if (err) return callback(err);
        try {
            configs[key] = JSON.parse(data);
        } catch (e) {
            return callback(e);
        }
        callback();
    });
}, err => {
    if (err) console.error(err.message);
    // configs is now a map of JSON data
    doSomethingWith(configs);
});
var async = require("async");

// ...or ES2017 async functions
async.mapLimit(urls, 5, async function(url) {
    const response = await fetch(url)
    return response.body
}, (err, results) => {
    if (err) throw err
    // results is now an array of the response bodies
    console.log(results)
})