prc b6c02717e6 Upload complete no-internet building environment. il y a 1 an
..
dist b6c02717e6 Upload complete no-internet building environment. il y a 1 an
internal b6c02717e6 Upload complete no-internet building environment. il y a 1 an
CHANGELOG.md b6c02717e6 Upload complete no-internet building environment. il y a 1 an
LICENSE b6c02717e6 Upload complete no-internet building environment. il y a 1 an
README.md b6c02717e6 Upload complete no-internet building environment. il y a 1 an
all.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
allLimit.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
allSeries.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
any.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
anyLimit.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
anySeries.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
apply.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
applyEach.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
applyEachSeries.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
asyncify.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
auto.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
autoInject.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
bower.json b6c02717e6 Upload complete no-internet building environment. il y a 1 an
cargo.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
cargoQueue.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
compose.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
concat.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
concatLimit.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
concatSeries.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
constant.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
detect.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
detectLimit.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
detectSeries.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
dir.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
doDuring.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
doUntil.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
doWhilst.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
during.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
each.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
eachLimit.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
eachOf.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
eachOfLimit.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
eachOfSeries.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
eachSeries.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
ensureAsync.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
every.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
everyLimit.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
everySeries.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
filter.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
filterLimit.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
filterSeries.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
find.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
findLimit.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
findSeries.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
flatMap.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
flatMapLimit.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
flatMapSeries.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
foldl.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
foldr.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
forEach.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
forEachLimit.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
forEachOf.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
forEachOfLimit.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
forEachOfSeries.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
forEachSeries.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
forever.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
groupBy.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
groupByLimit.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
groupBySeries.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
index.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
inject.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
log.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
map.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
mapLimit.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
mapSeries.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
mapValues.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
mapValuesLimit.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
mapValuesSeries.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
memoize.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
nextTick.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
package.json b6c02717e6 Upload complete no-internet building environment. il y a 1 an
parallel.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
parallelLimit.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
priorityQueue.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
queue.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
race.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
reduce.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
reduceRight.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
reflect.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
reflectAll.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
reject.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
rejectLimit.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
rejectSeries.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
retry.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
retryable.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
select.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
selectLimit.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
selectSeries.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
seq.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
series.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
setImmediate.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
some.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
someLimit.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
someSeries.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
sortBy.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
timeout.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
times.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
timesLimit.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
timesSeries.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
transform.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
tryEach.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
unmemoize.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
until.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
waterfall.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
whilst.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an
wrapSync.js b6c02717e6 Upload complete no-internet building environment. il y a 1 an

README.md

Async Logo

Github Actions CI status NPM version Coverage Status 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. A 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)
})