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

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