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

Async Logo

Github Actions CI status NPM version Coverage Status Join the chat at https://gitter.im/caolan/async 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)
})