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

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