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

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