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

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