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