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