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

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