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

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