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

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