htc 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
..
dist 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
internal 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
CHANGELOG.md 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
LICENSE 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
README.md 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
all.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
allLimit.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
allSeries.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
any.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
anyLimit.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
anySeries.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
apply.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
applyEach.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
applyEachSeries.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
asyncify.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
auto.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
autoInject.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
bower.json 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
cargo.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
cargoQueue.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
compose.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
concat.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
concatLimit.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
concatSeries.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
constant.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
detect.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
detectLimit.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
detectSeries.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
dir.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
doDuring.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
doUntil.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
doWhilst.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
during.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
each.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
eachLimit.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
eachOf.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
eachOfLimit.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
eachOfSeries.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
eachSeries.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
ensureAsync.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
every.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
everyLimit.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
everySeries.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
filter.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
filterLimit.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
filterSeries.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
find.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
findLimit.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
findSeries.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
flatMap.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
flatMapLimit.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
flatMapSeries.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
foldl.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
foldr.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
forEach.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
forEachLimit.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
forEachOf.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
forEachOfLimit.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
forEachOfSeries.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
forEachSeries.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
forever.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
groupBy.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
groupByLimit.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
groupBySeries.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
index.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
inject.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
log.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
map.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
mapLimit.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
mapSeries.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
mapValues.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
mapValuesLimit.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
mapValuesSeries.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
memoize.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
nextTick.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
package.json 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
parallel.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
parallelLimit.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
priorityQueue.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
queue.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
race.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
reduce.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
reduceRight.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
reflect.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
reflectAll.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
reject.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
rejectLimit.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
rejectSeries.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
retry.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
retryable.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
select.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
selectLimit.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
selectSeries.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
seq.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
series.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
setImmediate.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
some.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
someLimit.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
someSeries.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
sortBy.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
timeout.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
times.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
timesLimit.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
timesSeries.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
transform.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
tryEach.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
unmemoize.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
until.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
waterfall.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
whilst.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois
wrapSync.js 7ca38fdcbb 善行少年PC端首次提交(基础版) il y a 1 mois

README.md

Async Logo

Github Actions CI status NPM version Coverage Status 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)
})