Internet-programming_PIbd-2.../Library/node_modules/async
2023-11-30 18:35:42 +04:00
..
dist i just have broken all of it 2023-11-30 18:35:42 +04:00
internal i just have broken all of it 2023-11-30 18:35:42 +04:00
all.js i just have broken all of it 2023-11-30 18:35:42 +04:00
allLimit.js i just have broken all of it 2023-11-30 18:35:42 +04:00
allSeries.js i just have broken all of it 2023-11-30 18:35:42 +04:00
any.js i just have broken all of it 2023-11-30 18:35:42 +04:00
anyLimit.js i just have broken all of it 2023-11-30 18:35:42 +04:00
anySeries.js i just have broken all of it 2023-11-30 18:35:42 +04:00
apply.js i just have broken all of it 2023-11-30 18:35:42 +04:00
applyEach.js i just have broken all of it 2023-11-30 18:35:42 +04:00
applyEachSeries.js i just have broken all of it 2023-11-30 18:35:42 +04:00
asyncify.js i just have broken all of it 2023-11-30 18:35:42 +04:00
auto.js i just have broken all of it 2023-11-30 18:35:42 +04:00
autoInject.js i just have broken all of it 2023-11-30 18:35:42 +04:00
bower.json i just have broken all of it 2023-11-30 18:35:42 +04:00
cargo.js i just have broken all of it 2023-11-30 18:35:42 +04:00
CHANGELOG.md i just have broken all of it 2023-11-30 18:35:42 +04:00
compose.js i just have broken all of it 2023-11-30 18:35:42 +04:00
concat.js i just have broken all of it 2023-11-30 18:35:42 +04:00
concatLimit.js i just have broken all of it 2023-11-30 18:35:42 +04:00
concatSeries.js i just have broken all of it 2023-11-30 18:35:42 +04:00
constant.js i just have broken all of it 2023-11-30 18:35:42 +04:00
detect.js i just have broken all of it 2023-11-30 18:35:42 +04:00
detectLimit.js i just have broken all of it 2023-11-30 18:35:42 +04:00
detectSeries.js i just have broken all of it 2023-11-30 18:35:42 +04:00
dir.js i just have broken all of it 2023-11-30 18:35:42 +04:00
doDuring.js i just have broken all of it 2023-11-30 18:35:42 +04:00
doUntil.js i just have broken all of it 2023-11-30 18:35:42 +04:00
doWhilst.js i just have broken all of it 2023-11-30 18:35:42 +04:00
during.js i just have broken all of it 2023-11-30 18:35:42 +04:00
each.js i just have broken all of it 2023-11-30 18:35:42 +04:00
eachLimit.js i just have broken all of it 2023-11-30 18:35:42 +04:00
eachOf.js i just have broken all of it 2023-11-30 18:35:42 +04:00
eachOfLimit.js i just have broken all of it 2023-11-30 18:35:42 +04:00
eachOfSeries.js i just have broken all of it 2023-11-30 18:35:42 +04:00
eachSeries.js i just have broken all of it 2023-11-30 18:35:42 +04:00
ensureAsync.js i just have broken all of it 2023-11-30 18:35:42 +04:00
every.js i just have broken all of it 2023-11-30 18:35:42 +04:00
everyLimit.js i just have broken all of it 2023-11-30 18:35:42 +04:00
everySeries.js i just have broken all of it 2023-11-30 18:35:42 +04:00
filter.js i just have broken all of it 2023-11-30 18:35:42 +04:00
filterLimit.js i just have broken all of it 2023-11-30 18:35:42 +04:00
filterSeries.js i just have broken all of it 2023-11-30 18:35:42 +04:00
find.js i just have broken all of it 2023-11-30 18:35:42 +04:00
findLimit.js i just have broken all of it 2023-11-30 18:35:42 +04:00
findSeries.js i just have broken all of it 2023-11-30 18:35:42 +04:00
foldl.js i just have broken all of it 2023-11-30 18:35:42 +04:00
foldr.js i just have broken all of it 2023-11-30 18:35:42 +04:00
forEach.js i just have broken all of it 2023-11-30 18:35:42 +04:00
forEachLimit.js i just have broken all of it 2023-11-30 18:35:42 +04:00
forEachOf.js i just have broken all of it 2023-11-30 18:35:42 +04:00
forEachOfLimit.js i just have broken all of it 2023-11-30 18:35:42 +04:00
forEachOfSeries.js i just have broken all of it 2023-11-30 18:35:42 +04:00
forEachSeries.js i just have broken all of it 2023-11-30 18:35:42 +04:00
forever.js i just have broken all of it 2023-11-30 18:35:42 +04:00
groupBy.js i just have broken all of it 2023-11-30 18:35:42 +04:00
groupByLimit.js i just have broken all of it 2023-11-30 18:35:42 +04:00
groupBySeries.js i just have broken all of it 2023-11-30 18:35:42 +04:00
index.js i just have broken all of it 2023-11-30 18:35:42 +04:00
inject.js i just have broken all of it 2023-11-30 18:35:42 +04:00
LICENSE i just have broken all of it 2023-11-30 18:35:42 +04:00
log.js i just have broken all of it 2023-11-30 18:35:42 +04:00
map.js i just have broken all of it 2023-11-30 18:35:42 +04:00
mapLimit.js i just have broken all of it 2023-11-30 18:35:42 +04:00
mapSeries.js i just have broken all of it 2023-11-30 18:35:42 +04:00
mapValues.js i just have broken all of it 2023-11-30 18:35:42 +04:00
mapValuesLimit.js i just have broken all of it 2023-11-30 18:35:42 +04:00
mapValuesSeries.js i just have broken all of it 2023-11-30 18:35:42 +04:00
memoize.js i just have broken all of it 2023-11-30 18:35:42 +04:00
nextTick.js i just have broken all of it 2023-11-30 18:35:42 +04:00
package.json i just have broken all of it 2023-11-30 18:35:42 +04:00
parallel.js i just have broken all of it 2023-11-30 18:35:42 +04:00
parallelLimit.js i just have broken all of it 2023-11-30 18:35:42 +04:00
priorityQueue.js i just have broken all of it 2023-11-30 18:35:42 +04:00
queue.js i just have broken all of it 2023-11-30 18:35:42 +04:00
race.js i just have broken all of it 2023-11-30 18:35:42 +04:00
README.md i just have broken all of it 2023-11-30 18:35:42 +04:00
reduce.js i just have broken all of it 2023-11-30 18:35:42 +04:00
reduceRight.js i just have broken all of it 2023-11-30 18:35:42 +04:00
reflect.js i just have broken all of it 2023-11-30 18:35:42 +04:00
reflectAll.js i just have broken all of it 2023-11-30 18:35:42 +04:00
reject.js i just have broken all of it 2023-11-30 18:35:42 +04:00
rejectLimit.js i just have broken all of it 2023-11-30 18:35:42 +04:00
rejectSeries.js i just have broken all of it 2023-11-30 18:35:42 +04:00
retry.js i just have broken all of it 2023-11-30 18:35:42 +04:00
retryable.js i just have broken all of it 2023-11-30 18:35:42 +04:00
select.js i just have broken all of it 2023-11-30 18:35:42 +04:00
selectLimit.js i just have broken all of it 2023-11-30 18:35:42 +04:00
selectSeries.js i just have broken all of it 2023-11-30 18:35:42 +04:00
seq.js i just have broken all of it 2023-11-30 18:35:42 +04:00
series.js i just have broken all of it 2023-11-30 18:35:42 +04:00
setImmediate.js i just have broken all of it 2023-11-30 18:35:42 +04:00
some.js i just have broken all of it 2023-11-30 18:35:42 +04:00
someLimit.js i just have broken all of it 2023-11-30 18:35:42 +04:00
someSeries.js i just have broken all of it 2023-11-30 18:35:42 +04:00
sortBy.js i just have broken all of it 2023-11-30 18:35:42 +04:00
timeout.js i just have broken all of it 2023-11-30 18:35:42 +04:00
times.js i just have broken all of it 2023-11-30 18:35:42 +04:00
timesLimit.js i just have broken all of it 2023-11-30 18:35:42 +04:00
timesSeries.js i just have broken all of it 2023-11-30 18:35:42 +04:00
transform.js i just have broken all of it 2023-11-30 18:35:42 +04:00
tryEach.js i just have broken all of it 2023-11-30 18:35:42 +04:00
unmemoize.js i just have broken all of it 2023-11-30 18:35:42 +04:00
until.js i just have broken all of it 2023-11-30 18:35:42 +04:00
waterfall.js i just have broken all of it 2023-11-30 18:35:42 +04:00
whilst.js i just have broken all of it 2023-11-30 18:35:42 +04:00
wrapSync.js i just have broken all of it 2023-11-30 18:35:42 +04:00

Async Logo

Build Status via Travis CI NPM version Coverage Status Join the chat at https://gitter.im/caolan/async libhive - Open source examples 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 install --save async, it can also be used directly in the browser.

This version of the package is optimized for the Node.js environment. If you use Async with webpack, install async-es instead.

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