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

Async Logo

Github Actions CI status NPM version Coverage Status Join the chat at https://gitter.im/caolan/async 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 i async, it can also be used directly in the browser. An ESM/MJS version is included in the main async package that should automatically be used with compatible bundlers such as Webpack and Rollup.

A pure ESM version of Async is available as async-es.

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)
})