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

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