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