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