InternetProgramming/Lab3/node_modules/async
2023-12-15 14:42:22 +04:00
..
internal Лаб 4 2023-12-15 14:42:22 +04:00
all.js Лаб 4 2023-12-15 14:42:22 +04:00
allLimit.js Лаб 4 2023-12-15 14:42:22 +04:00
allSeries.js Лаб 4 2023-12-15 14:42:22 +04:00
any.js Лаб 4 2023-12-15 14:42:22 +04:00
anyLimit.js Лаб 4 2023-12-15 14:42:22 +04:00
anySeries.js Лаб 4 2023-12-15 14:42:22 +04:00
apply.js Лаб 4 2023-12-15 14:42:22 +04:00
applyEach.js Лаб 4 2023-12-15 14:42:22 +04:00
applyEachSeries.js Лаб 4 2023-12-15 14:42:22 +04:00
asyncify.js Лаб 4 2023-12-15 14:42:22 +04:00
auto.js Лаб 4 2023-12-15 14:42:22 +04:00
autoInject.js Лаб 4 2023-12-15 14:42:22 +04:00
bower.json Лаб 4 2023-12-15 14:42:22 +04:00
cargo.js Лаб 4 2023-12-15 14:42:22 +04:00
CHANGELOG.md Лаб 4 2023-12-15 14:42:22 +04:00
compose.js Лаб 4 2023-12-15 14:42:22 +04:00
concat.js Лаб 4 2023-12-15 14:42:22 +04:00
concatLimit.js Лаб 4 2023-12-15 14:42:22 +04:00
concatSeries.js Лаб 4 2023-12-15 14:42:22 +04:00
constant.js Лаб 4 2023-12-15 14:42:22 +04:00
detect.js Лаб 4 2023-12-15 14:42:22 +04:00
detectLimit.js Лаб 4 2023-12-15 14:42:22 +04:00
detectSeries.js Лаб 4 2023-12-15 14:42:22 +04:00
dir.js Лаб 4 2023-12-15 14:42:22 +04:00
doDuring.js Лаб 4 2023-12-15 14:42:22 +04:00
doUntil.js Лаб 4 2023-12-15 14:42:22 +04:00
doWhilst.js Лаб 4 2023-12-15 14:42:22 +04:00
during.js Лаб 4 2023-12-15 14:42:22 +04:00
each.js Лаб 4 2023-12-15 14:42:22 +04:00
eachLimit.js Лаб 4 2023-12-15 14:42:22 +04:00
eachOf.js Лаб 4 2023-12-15 14:42:22 +04:00
eachOfLimit.js Лаб 4 2023-12-15 14:42:22 +04:00
eachOfSeries.js Лаб 4 2023-12-15 14:42:22 +04:00
eachSeries.js Лаб 4 2023-12-15 14:42:22 +04:00
ensureAsync.js Лаб 4 2023-12-15 14:42:22 +04:00
every.js Лаб 4 2023-12-15 14:42:22 +04:00
everyLimit.js Лаб 4 2023-12-15 14:42:22 +04:00
everySeries.js Лаб 4 2023-12-15 14:42:22 +04:00
filter.js Лаб 4 2023-12-15 14:42:22 +04:00
filterLimit.js Лаб 4 2023-12-15 14:42:22 +04:00
filterSeries.js Лаб 4 2023-12-15 14:42:22 +04:00
find.js Лаб 4 2023-12-15 14:42:22 +04:00
findLimit.js Лаб 4 2023-12-15 14:42:22 +04:00
findSeries.js Лаб 4 2023-12-15 14:42:22 +04:00
foldl.js Лаб 4 2023-12-15 14:42:22 +04:00
foldr.js Лаб 4 2023-12-15 14:42:22 +04:00
forEach.js Лаб 4 2023-12-15 14:42:22 +04:00
forEachLimit.js Лаб 4 2023-12-15 14:42:22 +04:00
forEachOf.js Лаб 4 2023-12-15 14:42:22 +04:00
forEachOfLimit.js Лаб 4 2023-12-15 14:42:22 +04:00
forEachOfSeries.js Лаб 4 2023-12-15 14:42:22 +04:00
forEachSeries.js Лаб 4 2023-12-15 14:42:22 +04:00
forever.js Лаб 4 2023-12-15 14:42:22 +04:00
groupBy.js Лаб 4 2023-12-15 14:42:22 +04:00
groupByLimit.js Лаб 4 2023-12-15 14:42:22 +04:00
groupBySeries.js Лаб 4 2023-12-15 14:42:22 +04:00
index.js Лаб 4 2023-12-15 14:42:22 +04:00
inject.js Лаб 4 2023-12-15 14:42:22 +04:00
LICENSE Лаб 4 2023-12-15 14:42:22 +04:00
log.js Лаб 4 2023-12-15 14:42:22 +04:00
map.js Лаб 4 2023-12-15 14:42:22 +04:00
mapLimit.js Лаб 4 2023-12-15 14:42:22 +04:00
mapSeries.js Лаб 4 2023-12-15 14:42:22 +04:00
mapValues.js Лаб 4 2023-12-15 14:42:22 +04:00
mapValuesLimit.js Лаб 4 2023-12-15 14:42:22 +04:00
mapValuesSeries.js Лаб 4 2023-12-15 14:42:22 +04:00
memoize.js Лаб 4 2023-12-15 14:42:22 +04:00
nextTick.js Лаб 4 2023-12-15 14:42:22 +04:00
package.json Лаб 4 2023-12-15 14:42:22 +04:00
parallel.js Лаб 4 2023-12-15 14:42:22 +04:00
parallelLimit.js Лаб 4 2023-12-15 14:42:22 +04:00
priorityQueue.js Лаб 4 2023-12-15 14:42:22 +04:00
queue.js Лаб 4 2023-12-15 14:42:22 +04:00
race.js Лаб 4 2023-12-15 14:42:22 +04:00
README.md Лаб 4 2023-12-15 14:42:22 +04:00
reduce.js Лаб 4 2023-12-15 14:42:22 +04:00
reduceRight.js Лаб 4 2023-12-15 14:42:22 +04:00
reflect.js Лаб 4 2023-12-15 14:42:22 +04:00
reflectAll.js Лаб 4 2023-12-15 14:42:22 +04:00
reject.js Лаб 4 2023-12-15 14:42:22 +04:00
rejectLimit.js Лаб 4 2023-12-15 14:42:22 +04:00
rejectSeries.js Лаб 4 2023-12-15 14:42:22 +04:00
retry.js Лаб 4 2023-12-15 14:42:22 +04:00
retryable.js Лаб 4 2023-12-15 14:42:22 +04:00
select.js Лаб 4 2023-12-15 14:42:22 +04:00
selectLimit.js Лаб 4 2023-12-15 14:42:22 +04:00
selectSeries.js Лаб 4 2023-12-15 14:42:22 +04:00
seq.js Лаб 4 2023-12-15 14:42:22 +04:00
series.js Лаб 4 2023-12-15 14:42:22 +04:00
setImmediate.js Лаб 4 2023-12-15 14:42:22 +04:00
some.js Лаб 4 2023-12-15 14:42:22 +04:00
someLimit.js Лаб 4 2023-12-15 14:42:22 +04:00
someSeries.js Лаб 4 2023-12-15 14:42:22 +04:00
sortBy.js Лаб 4 2023-12-15 14:42:22 +04:00
timeout.js Лаб 4 2023-12-15 14:42:22 +04:00
times.js Лаб 4 2023-12-15 14:42:22 +04:00
timesLimit.js Лаб 4 2023-12-15 14:42:22 +04:00
timesSeries.js Лаб 4 2023-12-15 14:42:22 +04:00
transform.js Лаб 4 2023-12-15 14:42:22 +04:00
tryEach.js Лаб 4 2023-12-15 14:42:22 +04:00
unmemoize.js Лаб 4 2023-12-15 14:42:22 +04:00
until.js Лаб 4 2023-12-15 14:42:22 +04:00
waterfall.js Лаб 4 2023-12-15 14:42:22 +04:00
whilst.js Лаб 4 2023-12-15 14:42:22 +04:00
wrapSync.js Лаб 4 2023-12-15 14:42:22 +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)
})