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

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