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

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