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