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

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