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