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