lhl 6ff0e96ad3 8-4-1 1 rok temu
..
dist 6ff0e96ad3 8-4-1 1 rok temu
internal 6ff0e96ad3 8-4-1 1 rok temu
CHANGELOG.md 6ff0e96ad3 8-4-1 1 rok temu
LICENSE 6ff0e96ad3 8-4-1 1 rok temu
README.md 6ff0e96ad3 8-4-1 1 rok temu
all.js 6ff0e96ad3 8-4-1 1 rok temu
allLimit.js 6ff0e96ad3 8-4-1 1 rok temu
allSeries.js 6ff0e96ad3 8-4-1 1 rok temu
any.js 6ff0e96ad3 8-4-1 1 rok temu
anyLimit.js 6ff0e96ad3 8-4-1 1 rok temu
anySeries.js 6ff0e96ad3 8-4-1 1 rok temu
apply.js 6ff0e96ad3 8-4-1 1 rok temu
applyEach.js 6ff0e96ad3 8-4-1 1 rok temu
applyEachSeries.js 6ff0e96ad3 8-4-1 1 rok temu
asyncify.js 6ff0e96ad3 8-4-1 1 rok temu
auto.js 6ff0e96ad3 8-4-1 1 rok temu
autoInject.js 6ff0e96ad3 8-4-1 1 rok temu
bower.json 6ff0e96ad3 8-4-1 1 rok temu
cargo.js 6ff0e96ad3 8-4-1 1 rok temu
compose.js 6ff0e96ad3 8-4-1 1 rok temu
concat.js 6ff0e96ad3 8-4-1 1 rok temu
concatLimit.js 6ff0e96ad3 8-4-1 1 rok temu
concatSeries.js 6ff0e96ad3 8-4-1 1 rok temu
constant.js 6ff0e96ad3 8-4-1 1 rok temu
detect.js 6ff0e96ad3 8-4-1 1 rok temu
detectLimit.js 6ff0e96ad3 8-4-1 1 rok temu
detectSeries.js 6ff0e96ad3 8-4-1 1 rok temu
dir.js 6ff0e96ad3 8-4-1 1 rok temu
doDuring.js 6ff0e96ad3 8-4-1 1 rok temu
doUntil.js 6ff0e96ad3 8-4-1 1 rok temu
doWhilst.js 6ff0e96ad3 8-4-1 1 rok temu
during.js 6ff0e96ad3 8-4-1 1 rok temu
each.js 6ff0e96ad3 8-4-1 1 rok temu
eachLimit.js 6ff0e96ad3 8-4-1 1 rok temu
eachOf.js 6ff0e96ad3 8-4-1 1 rok temu
eachOfLimit.js 6ff0e96ad3 8-4-1 1 rok temu
eachOfSeries.js 6ff0e96ad3 8-4-1 1 rok temu
eachSeries.js 6ff0e96ad3 8-4-1 1 rok temu
ensureAsync.js 6ff0e96ad3 8-4-1 1 rok temu
every.js 6ff0e96ad3 8-4-1 1 rok temu
everyLimit.js 6ff0e96ad3 8-4-1 1 rok temu
everySeries.js 6ff0e96ad3 8-4-1 1 rok temu
filter.js 6ff0e96ad3 8-4-1 1 rok temu
filterLimit.js 6ff0e96ad3 8-4-1 1 rok temu
filterSeries.js 6ff0e96ad3 8-4-1 1 rok temu
find.js 6ff0e96ad3 8-4-1 1 rok temu
findLimit.js 6ff0e96ad3 8-4-1 1 rok temu
findSeries.js 6ff0e96ad3 8-4-1 1 rok temu
foldl.js 6ff0e96ad3 8-4-1 1 rok temu
foldr.js 6ff0e96ad3 8-4-1 1 rok temu
forEach.js 6ff0e96ad3 8-4-1 1 rok temu
forEachLimit.js 6ff0e96ad3 8-4-1 1 rok temu
forEachOf.js 6ff0e96ad3 8-4-1 1 rok temu
forEachOfLimit.js 6ff0e96ad3 8-4-1 1 rok temu
forEachOfSeries.js 6ff0e96ad3 8-4-1 1 rok temu
forEachSeries.js 6ff0e96ad3 8-4-1 1 rok temu
forever.js 6ff0e96ad3 8-4-1 1 rok temu
groupBy.js 6ff0e96ad3 8-4-1 1 rok temu
groupByLimit.js 6ff0e96ad3 8-4-1 1 rok temu
groupBySeries.js 6ff0e96ad3 8-4-1 1 rok temu
index.js 6ff0e96ad3 8-4-1 1 rok temu
inject.js 6ff0e96ad3 8-4-1 1 rok temu
log.js 6ff0e96ad3 8-4-1 1 rok temu
map.js 6ff0e96ad3 8-4-1 1 rok temu
mapLimit.js 6ff0e96ad3 8-4-1 1 rok temu
mapSeries.js 6ff0e96ad3 8-4-1 1 rok temu
mapValues.js 6ff0e96ad3 8-4-1 1 rok temu
mapValuesLimit.js 6ff0e96ad3 8-4-1 1 rok temu
mapValuesSeries.js 6ff0e96ad3 8-4-1 1 rok temu
memoize.js 6ff0e96ad3 8-4-1 1 rok temu
nextTick.js 6ff0e96ad3 8-4-1 1 rok temu
package.json 6ff0e96ad3 8-4-1 1 rok temu
parallel.js 6ff0e96ad3 8-4-1 1 rok temu
parallelLimit.js 6ff0e96ad3 8-4-1 1 rok temu
priorityQueue.js 6ff0e96ad3 8-4-1 1 rok temu
queue.js 6ff0e96ad3 8-4-1 1 rok temu
race.js 6ff0e96ad3 8-4-1 1 rok temu
reduce.js 6ff0e96ad3 8-4-1 1 rok temu
reduceRight.js 6ff0e96ad3 8-4-1 1 rok temu
reflect.js 6ff0e96ad3 8-4-1 1 rok temu
reflectAll.js 6ff0e96ad3 8-4-1 1 rok temu
reject.js 6ff0e96ad3 8-4-1 1 rok temu
rejectLimit.js 6ff0e96ad3 8-4-1 1 rok temu
rejectSeries.js 6ff0e96ad3 8-4-1 1 rok temu
retry.js 6ff0e96ad3 8-4-1 1 rok temu
retryable.js 6ff0e96ad3 8-4-1 1 rok temu
select.js 6ff0e96ad3 8-4-1 1 rok temu
selectLimit.js 6ff0e96ad3 8-4-1 1 rok temu
selectSeries.js 6ff0e96ad3 8-4-1 1 rok temu
seq.js 6ff0e96ad3 8-4-1 1 rok temu
series.js 6ff0e96ad3 8-4-1 1 rok temu
setImmediate.js 6ff0e96ad3 8-4-1 1 rok temu
some.js 6ff0e96ad3 8-4-1 1 rok temu
someLimit.js 6ff0e96ad3 8-4-1 1 rok temu
someSeries.js 6ff0e96ad3 8-4-1 1 rok temu
sortBy.js 6ff0e96ad3 8-4-1 1 rok temu
timeout.js 6ff0e96ad3 8-4-1 1 rok temu
times.js 6ff0e96ad3 8-4-1 1 rok temu
timesLimit.js 6ff0e96ad3 8-4-1 1 rok temu
timesSeries.js 6ff0e96ad3 8-4-1 1 rok temu
transform.js 6ff0e96ad3 8-4-1 1 rok temu
tryEach.js 6ff0e96ad3 8-4-1 1 rok temu
unmemoize.js 6ff0e96ad3 8-4-1 1 rok temu
until.js 6ff0e96ad3 8-4-1 1 rok temu
waterfall.js 6ff0e96ad3 8-4-1 1 rok temu
whilst.js 6ff0e96ad3 8-4-1 1 rok temu
wrapSync.js 6ff0e96ad3 8-4-1 1 rok temu

README.md

Async Logo

Build Status via Travis CI NPM version Coverage Status 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)
})