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