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