prc b6c02717e6 Upload complete no-internet building environment. 1 år sedan
..
dist b6c02717e6 Upload complete no-internet building environment. 1 år sedan
internal b6c02717e6 Upload complete no-internet building environment. 1 år sedan
CHANGELOG.md b6c02717e6 Upload complete no-internet building environment. 1 år sedan
LICENSE b6c02717e6 Upload complete no-internet building environment. 1 år sedan
README.md b6c02717e6 Upload complete no-internet building environment. 1 år sedan
all.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
allLimit.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
allSeries.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
any.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
anyLimit.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
anySeries.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
apply.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
applyEach.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
applyEachSeries.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
asyncify.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
auto.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
autoInject.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
bower.json b6c02717e6 Upload complete no-internet building environment. 1 år sedan
cargo.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
cargoQueue.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
compose.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
concat.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
concatLimit.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
concatSeries.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
constant.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
detect.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
detectLimit.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
detectSeries.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
dir.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
doDuring.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
doUntil.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
doWhilst.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
during.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
each.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
eachLimit.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
eachOf.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
eachOfLimit.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
eachOfSeries.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
eachSeries.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
ensureAsync.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
every.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
everyLimit.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
everySeries.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
filter.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
filterLimit.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
filterSeries.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
find.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
findLimit.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
findSeries.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
flatMap.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
flatMapLimit.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
flatMapSeries.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
foldl.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
foldr.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
forEach.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
forEachLimit.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
forEachOf.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
forEachOfLimit.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
forEachOfSeries.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
forEachSeries.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
forever.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
groupBy.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
groupByLimit.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
groupBySeries.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
index.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
inject.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
log.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
map.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
mapLimit.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
mapSeries.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
mapValues.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
mapValuesLimit.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
mapValuesSeries.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
memoize.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
nextTick.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
package.json b6c02717e6 Upload complete no-internet building environment. 1 år sedan
parallel.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
parallelLimit.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
priorityQueue.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
queue.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
race.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
reduce.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
reduceRight.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
reflect.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
reflectAll.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
reject.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
rejectLimit.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
rejectSeries.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
retry.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
retryable.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
select.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
selectLimit.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
selectSeries.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
seq.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
series.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
setImmediate.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
some.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
someLimit.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
someSeries.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
sortBy.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
timeout.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
times.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
timesLimit.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
timesSeries.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
transform.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
tryEach.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
unmemoize.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
until.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
waterfall.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
whilst.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan
wrapSync.js b6c02717e6 Upload complete no-internet building environment. 1 år sedan

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