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

README.md

Async Logo

Build Status via Travis CI Build Status via Azure Pipelines 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)
})