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