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

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