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

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