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