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

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