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

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