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

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