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