om/node_modules/async
2019-02-01 14:07:43 +01:00
..
dist database and ajax test added 2019-02-01 14:06:44 +01:00
internal database and ajax test added 2019-02-01 14:06:44 +01:00
all.js database and ajax test added 2019-02-01 14:06:44 +01:00
allLimit.js database and ajax test added 2019-02-01 14:06:44 +01:00
allSeries.js database and ajax test added 2019-02-01 14:06:44 +01:00
any.js database and ajax test added 2019-02-01 14:06:44 +01:00
anyLimit.js database and ajax test added 2019-02-01 14:06:44 +01:00
anySeries.js database and ajax test added 2019-02-01 14:06:44 +01:00
apply.js database and ajax test added 2019-02-01 14:06:44 +01:00
applyEach.js database and ajax test added 2019-02-01 14:06:44 +01:00
applyEachSeries.js database and ajax test added 2019-02-01 14:06:44 +01:00
asyncify.js database and ajax test added 2019-02-01 14:06:44 +01:00
auto.js database and ajax test added 2019-02-01 14:06:44 +01:00
autoInject.js database and ajax test added 2019-02-01 14:06:44 +01:00
bower.json database and ajax test added 2019-02-01 14:06:44 +01:00
cargo.js database and ajax test added 2019-02-01 14:06:44 +01:00
CHANGELOG.md database and ajax test added 2019-02-01 14:06:44 +01:00
compose.js database and ajax test added 2019-02-01 14:06:44 +01:00
concat.js database and ajax test added 2019-02-01 14:06:44 +01:00
concatLimit.js database and ajax test added 2019-02-01 14:06:44 +01:00
concatSeries.js database and ajax test added 2019-02-01 14:06:44 +01:00
constant.js database and ajax test added 2019-02-01 14:06:44 +01:00
detect.js database and ajax test added 2019-02-01 14:06:44 +01:00
detectLimit.js database and ajax test added 2019-02-01 14:06:44 +01:00
detectSeries.js database and ajax test added 2019-02-01 14:06:44 +01:00
dir.js database and ajax test added 2019-02-01 14:06:44 +01:00
doDuring.js database and ajax test added 2019-02-01 14:06:44 +01:00
doUntil.js database and ajax test added 2019-02-01 14:06:44 +01:00
doWhilst.js database and ajax test added 2019-02-01 14:06:44 +01:00
during.js database and ajax test added 2019-02-01 14:06:44 +01:00
each.js database and ajax test added 2019-02-01 14:06:44 +01:00
eachLimit.js database and ajax test added 2019-02-01 14:06:44 +01:00
eachOf.js database and ajax test added 2019-02-01 14:06:44 +01:00
eachOfLimit.js database and ajax test added 2019-02-01 14:06:44 +01:00
eachOfSeries.js database and ajax test added 2019-02-01 14:06:44 +01:00
eachSeries.js database and ajax test added 2019-02-01 14:06:44 +01:00
ensureAsync.js database and ajax test added 2019-02-01 14:06:44 +01:00
every.js database and ajax test added 2019-02-01 14:06:44 +01:00
everyLimit.js database and ajax test added 2019-02-01 14:06:44 +01:00
everySeries.js database and ajax test added 2019-02-01 14:06:44 +01:00
filter.js database and ajax test added 2019-02-01 14:06:44 +01:00
filterLimit.js database and ajax test added 2019-02-01 14:06:44 +01:00
filterSeries.js database and ajax test added 2019-02-01 14:06:44 +01:00
find.js database and ajax test added 2019-02-01 14:06:44 +01:00
findLimit.js database and ajax test added 2019-02-01 14:06:44 +01:00
findSeries.js database and ajax test added 2019-02-01 14:06:44 +01:00
foldl.js database and ajax test added 2019-02-01 14:06:44 +01:00
foldr.js database and ajax test added 2019-02-01 14:06:44 +01:00
forEach.js database and ajax test added 2019-02-01 14:06:44 +01:00
forEachLimit.js database and ajax test added 2019-02-01 14:06:44 +01:00
forEachOf.js database and ajax test added 2019-02-01 14:06:44 +01:00
forEachOfLimit.js database and ajax test added 2019-02-01 14:06:44 +01:00
forEachOfSeries.js database and ajax test added 2019-02-01 14:06:44 +01:00
forEachSeries.js database and ajax test added 2019-02-01 14:06:44 +01:00
forever.js database and ajax test added 2019-02-01 14:06:44 +01:00
groupBy.js database and ajax test added 2019-02-01 14:06:44 +01:00
groupByLimit.js database and ajax test added 2019-02-01 14:06:44 +01:00
groupBySeries.js database and ajax test added 2019-02-01 14:06:44 +01:00
index.js database and ajax test added 2019-02-01 14:06:44 +01:00
inject.js database and ajax test added 2019-02-01 14:06:44 +01:00
LICENSE database and ajax test added 2019-02-01 14:06:44 +01:00
log.js database and ajax test added 2019-02-01 14:06:44 +01:00
map.js database and ajax test added 2019-02-01 14:06:44 +01:00
mapLimit.js I do not know why this was not commited with the other stuff 2019-02-01 14:07:43 +01:00
mapSeries.js database and ajax test added 2019-02-01 14:06:44 +01:00
mapValues.js database and ajax test added 2019-02-01 14:06:44 +01:00
mapValuesLimit.js database and ajax test added 2019-02-01 14:06:44 +01:00
mapValuesSeries.js database and ajax test added 2019-02-01 14:06:44 +01:00
memoize.js database and ajax test added 2019-02-01 14:06:44 +01:00
nextTick.js database and ajax test added 2019-02-01 14:06:44 +01:00
package.json database and ajax test added 2019-02-01 14:06:44 +01:00
parallel.js database and ajax test added 2019-02-01 14:06:44 +01:00
parallelLimit.js database and ajax test added 2019-02-01 14:06:44 +01:00
priorityQueue.js database and ajax test added 2019-02-01 14:06:44 +01:00
queue.js database and ajax test added 2019-02-01 14:06:44 +01:00
race.js database and ajax test added 2019-02-01 14:06:44 +01:00
README.md database and ajax test added 2019-02-01 14:06:44 +01:00
reduce.js database and ajax test added 2019-02-01 14:06:44 +01:00
reduceRight.js database and ajax test added 2019-02-01 14:06:44 +01:00
reflect.js database and ajax test added 2019-02-01 14:06:44 +01:00
reflectAll.js database and ajax test added 2019-02-01 14:06:44 +01:00
reject.js database and ajax test added 2019-02-01 14:06:44 +01:00
rejectLimit.js database and ajax test added 2019-02-01 14:06:44 +01:00
rejectSeries.js database and ajax test added 2019-02-01 14:06:44 +01:00
retry.js database and ajax test added 2019-02-01 14:06:44 +01:00
retryable.js database and ajax test added 2019-02-01 14:06:44 +01:00
select.js database and ajax test added 2019-02-01 14:06:44 +01:00
selectLimit.js database and ajax test added 2019-02-01 14:06:44 +01:00
selectSeries.js database and ajax test added 2019-02-01 14:06:44 +01:00
seq.js database and ajax test added 2019-02-01 14:06:44 +01:00
series.js database and ajax test added 2019-02-01 14:06:44 +01:00
setImmediate.js database and ajax test added 2019-02-01 14:06:44 +01:00
some.js database and ajax test added 2019-02-01 14:06:44 +01:00
someLimit.js database and ajax test added 2019-02-01 14:06:44 +01:00
someSeries.js database and ajax test added 2019-02-01 14:06:44 +01:00
sortBy.js database and ajax test added 2019-02-01 14:06:44 +01:00
timeout.js database and ajax test added 2019-02-01 14:06:44 +01:00
times.js database and ajax test added 2019-02-01 14:06:44 +01:00
timesLimit.js database and ajax test added 2019-02-01 14:06:44 +01:00
timesSeries.js database and ajax test added 2019-02-01 14:06:44 +01:00
transform.js database and ajax test added 2019-02-01 14:06:44 +01:00
tryEach.js database and ajax test added 2019-02-01 14:06:44 +01:00
unmemoize.js database and ajax test added 2019-02-01 14:06:44 +01:00
until.js database and ajax test added 2019-02-01 14:06:44 +01:00
waterfall.js database and ajax test added 2019-02-01 14:06:44 +01:00
whilst.js database and ajax test added 2019-02-01 14:06:44 +01:00
wrapSync.js database and ajax test added 2019-02-01 14:06:44 +01:00

Async Logo

Build Status via Travis CI NPM version Coverage Status Join the chat at https://gitter.im/caolan/async 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)
})