zhibo/archive/extras/live-streaming/client/node_modules/async
2025-12-22 11:14:06 +08:00
..
dist chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
internal chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
all.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
allLimit.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
allSeries.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
any.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
anyLimit.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
anySeries.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
apply.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
applyEach.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
applyEachSeries.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
asyncify.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
auto.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
autoInject.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
bower.json chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
cargo.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
cargoQueue.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
CHANGELOG.md chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
compose.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
concat.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
concatLimit.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
concatSeries.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
constant.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
detect.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
detectLimit.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
detectSeries.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
dir.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
doDuring.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
doUntil.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
doWhilst.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
during.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
each.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
eachLimit.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
eachOf.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
eachOfLimit.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
eachOfSeries.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
eachSeries.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
ensureAsync.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
every.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
everyLimit.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
everySeries.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
filter.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
filterLimit.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
filterSeries.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
find.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
findLimit.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
findSeries.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
flatMap.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
flatMapLimit.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
flatMapSeries.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
foldl.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
foldr.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
forEach.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
forEachLimit.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
forEachOf.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
forEachOfLimit.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
forEachOfSeries.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
forEachSeries.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
forever.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
groupBy.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
groupByLimit.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
groupBySeries.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
index.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
inject.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
LICENSE chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
log.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
map.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
mapLimit.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
mapSeries.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
mapValues.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
mapValuesLimit.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
mapValuesSeries.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
memoize.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
nextTick.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
package.json chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
parallel.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
parallelLimit.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
priorityQueue.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
queue.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
race.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
README.md chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
reduce.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
reduceRight.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
reflect.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
reflectAll.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
reject.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
rejectLimit.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
rejectSeries.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
retry.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
retryable.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
select.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
selectLimit.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
selectSeries.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
seq.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
series.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
setImmediate.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
some.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
someLimit.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
someSeries.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
sortBy.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
timeout.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
times.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
timesLimit.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
timesSeries.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
transform.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
tryEach.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
unmemoize.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
until.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
waterfall.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
whilst.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
wrapSync.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00

Async Logo

Github Actions CI status NPM version Coverage Status Join the chat at https://gitter.im/caolan/async 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 i async, it can also be used directly in the browser. An ESM/MJS version is included in the main async package that should automatically be used with compatible bundlers such as Webpack and Rollup.

A pure ESM version of Async is available as async-es.

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