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

Async Logo

Build Status via Travis CI Build Status via Azure Pipelines 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. 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)
})