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