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