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