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

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