katoikia-app/web-ui/web-react/node_modules/async
Maria Sanchez 5abf040b42 fix web ui template 2022-07-05 22:15:11 -06:00
..
dist fix web ui template 2022-07-05 22:15:11 -06:00
internal fix web ui template 2022-07-05 22:15:11 -06:00
CHANGELOG.md fix web ui template 2022-07-05 22:15:11 -06:00
LICENSE fix web ui template 2022-07-05 22:15:11 -06:00
README.md fix web ui template 2022-07-05 22:15:11 -06:00
all.js fix web ui template 2022-07-05 22:15:11 -06:00
allLimit.js fix web ui template 2022-07-05 22:15:11 -06:00
allSeries.js fix web ui template 2022-07-05 22:15:11 -06:00
any.js fix web ui template 2022-07-05 22:15:11 -06:00
anyLimit.js fix web ui template 2022-07-05 22:15:11 -06:00
anySeries.js fix web ui template 2022-07-05 22:15:11 -06:00
apply.js fix web ui template 2022-07-05 22:15:11 -06:00
applyEach.js fix web ui template 2022-07-05 22:15:11 -06:00
applyEachSeries.js fix web ui template 2022-07-05 22:15:11 -06:00
asyncify.js fix web ui template 2022-07-05 22:15:11 -06:00
auto.js fix web ui template 2022-07-05 22:15:11 -06:00
autoInject.js fix web ui template 2022-07-05 22:15:11 -06:00
bower.json fix web ui template 2022-07-05 22:15:11 -06:00
cargo.js fix web ui template 2022-07-05 22:15:11 -06:00
compose.js fix web ui template 2022-07-05 22:15:11 -06:00
concat.js fix web ui template 2022-07-05 22:15:11 -06:00
concatLimit.js fix web ui template 2022-07-05 22:15:11 -06:00
concatSeries.js fix web ui template 2022-07-05 22:15:11 -06:00
constant.js fix web ui template 2022-07-05 22:15:11 -06:00
detect.js fix web ui template 2022-07-05 22:15:11 -06:00
detectLimit.js fix web ui template 2022-07-05 22:15:11 -06:00
detectSeries.js fix web ui template 2022-07-05 22:15:11 -06:00
dir.js fix web ui template 2022-07-05 22:15:11 -06:00
doDuring.js fix web ui template 2022-07-05 22:15:11 -06:00
doUntil.js fix web ui template 2022-07-05 22:15:11 -06:00
doWhilst.js fix web ui template 2022-07-05 22:15:11 -06:00
during.js fix web ui template 2022-07-05 22:15:11 -06:00
each.js fix web ui template 2022-07-05 22:15:11 -06:00
eachLimit.js fix web ui template 2022-07-05 22:15:11 -06:00
eachOf.js fix web ui template 2022-07-05 22:15:11 -06:00
eachOfLimit.js fix web ui template 2022-07-05 22:15:11 -06:00
eachOfSeries.js fix web ui template 2022-07-05 22:15:11 -06:00
eachSeries.js fix web ui template 2022-07-05 22:15:11 -06:00
ensureAsync.js fix web ui template 2022-07-05 22:15:11 -06:00
every.js fix web ui template 2022-07-05 22:15:11 -06:00
everyLimit.js fix web ui template 2022-07-05 22:15:11 -06:00
everySeries.js fix web ui template 2022-07-05 22:15:11 -06:00
filter.js fix web ui template 2022-07-05 22:15:11 -06:00
filterLimit.js fix web ui template 2022-07-05 22:15:11 -06:00
filterSeries.js fix web ui template 2022-07-05 22:15:11 -06:00
find.js fix web ui template 2022-07-05 22:15:11 -06:00
findLimit.js fix web ui template 2022-07-05 22:15:11 -06:00
findSeries.js fix web ui template 2022-07-05 22:15:11 -06:00
foldl.js fix web ui template 2022-07-05 22:15:11 -06:00
foldr.js fix web ui template 2022-07-05 22:15:11 -06:00
forEach.js fix web ui template 2022-07-05 22:15:11 -06:00
forEachLimit.js fix web ui template 2022-07-05 22:15:11 -06:00
forEachOf.js fix web ui template 2022-07-05 22:15:11 -06:00
forEachOfLimit.js fix web ui template 2022-07-05 22:15:11 -06:00
forEachOfSeries.js fix web ui template 2022-07-05 22:15:11 -06:00
forEachSeries.js fix web ui template 2022-07-05 22:15:11 -06:00
forever.js fix web ui template 2022-07-05 22:15:11 -06:00
groupBy.js fix web ui template 2022-07-05 22:15:11 -06:00
groupByLimit.js fix web ui template 2022-07-05 22:15:11 -06:00
groupBySeries.js fix web ui template 2022-07-05 22:15:11 -06:00
index.js fix web ui template 2022-07-05 22:15:11 -06:00
inject.js fix web ui template 2022-07-05 22:15:11 -06:00
log.js fix web ui template 2022-07-05 22:15:11 -06:00
map.js fix web ui template 2022-07-05 22:15:11 -06:00
mapLimit.js fix web ui template 2022-07-05 22:15:11 -06:00
mapSeries.js fix web ui template 2022-07-05 22:15:11 -06:00
mapValues.js fix web ui template 2022-07-05 22:15:11 -06:00
mapValuesLimit.js fix web ui template 2022-07-05 22:15:11 -06:00
mapValuesSeries.js fix web ui template 2022-07-05 22:15:11 -06:00
memoize.js fix web ui template 2022-07-05 22:15:11 -06:00
nextTick.js fix web ui template 2022-07-05 22:15:11 -06:00
package.json fix web ui template 2022-07-05 22:15:11 -06:00
parallel.js fix web ui template 2022-07-05 22:15:11 -06:00
parallelLimit.js fix web ui template 2022-07-05 22:15:11 -06:00
priorityQueue.js fix web ui template 2022-07-05 22:15:11 -06:00
queue.js fix web ui template 2022-07-05 22:15:11 -06:00
race.js fix web ui template 2022-07-05 22:15:11 -06:00
reduce.js fix web ui template 2022-07-05 22:15:11 -06:00
reduceRight.js fix web ui template 2022-07-05 22:15:11 -06:00
reflect.js fix web ui template 2022-07-05 22:15:11 -06:00
reflectAll.js fix web ui template 2022-07-05 22:15:11 -06:00
reject.js fix web ui template 2022-07-05 22:15:11 -06:00
rejectLimit.js fix web ui template 2022-07-05 22:15:11 -06:00
rejectSeries.js fix web ui template 2022-07-05 22:15:11 -06:00
retry.js fix web ui template 2022-07-05 22:15:11 -06:00
retryable.js fix web ui template 2022-07-05 22:15:11 -06:00
select.js fix web ui template 2022-07-05 22:15:11 -06:00
selectLimit.js fix web ui template 2022-07-05 22:15:11 -06:00
selectSeries.js fix web ui template 2022-07-05 22:15:11 -06:00
seq.js fix web ui template 2022-07-05 22:15:11 -06:00
series.js fix web ui template 2022-07-05 22:15:11 -06:00
setImmediate.js fix web ui template 2022-07-05 22:15:11 -06:00
some.js fix web ui template 2022-07-05 22:15:11 -06:00
someLimit.js fix web ui template 2022-07-05 22:15:11 -06:00
someSeries.js fix web ui template 2022-07-05 22:15:11 -06:00
sortBy.js fix web ui template 2022-07-05 22:15:11 -06:00
timeout.js fix web ui template 2022-07-05 22:15:11 -06:00
times.js fix web ui template 2022-07-05 22:15:11 -06:00
timesLimit.js fix web ui template 2022-07-05 22:15:11 -06:00
timesSeries.js fix web ui template 2022-07-05 22:15:11 -06:00
transform.js fix web ui template 2022-07-05 22:15:11 -06:00
tryEach.js fix web ui template 2022-07-05 22:15:11 -06:00
unmemoize.js fix web ui template 2022-07-05 22:15:11 -06:00
until.js fix web ui template 2022-07-05 22:15:11 -06:00
waterfall.js fix web ui template 2022-07-05 22:15:11 -06:00
whilst.js fix web ui template 2022-07-05 22:15:11 -06:00
wrapSync.js fix web ui template 2022-07-05 22:15:11 -06:00

README.md

Async Logo

Build Status via Travis CI NPM version Coverage Status Join the chat at https://gitter.im/caolan/async libhive - Open source examples 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 install --save async, it can also be used directly in the browser.

This version of the package is optimized for the Node.js environment. If you use Async with webpack, install async-es instead.

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)
})