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

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