Illia Kozyr c722a49f64 React Project DONE 2 rokov pred
..
dist c722a49f64 React Project DONE 2 rokov pred
internal c722a49f64 React Project DONE 2 rokov pred
CHANGELOG.md c722a49f64 React Project DONE 2 rokov pred
LICENSE c722a49f64 React Project DONE 2 rokov pred
README.md c722a49f64 React Project DONE 2 rokov pred
all.js c722a49f64 React Project DONE 2 rokov pred
allLimit.js c722a49f64 React Project DONE 2 rokov pred
allSeries.js c722a49f64 React Project DONE 2 rokov pred
any.js c722a49f64 React Project DONE 2 rokov pred
anyLimit.js c722a49f64 React Project DONE 2 rokov pred
anySeries.js c722a49f64 React Project DONE 2 rokov pred
apply.js c722a49f64 React Project DONE 2 rokov pred
applyEach.js c722a49f64 React Project DONE 2 rokov pred
applyEachSeries.js c722a49f64 React Project DONE 2 rokov pred
asyncify.js c722a49f64 React Project DONE 2 rokov pred
auto.js c722a49f64 React Project DONE 2 rokov pred
autoInject.js c722a49f64 React Project DONE 2 rokov pred
bower.json c722a49f64 React Project DONE 2 rokov pred
cargo.js c722a49f64 React Project DONE 2 rokov pred
compose.js c722a49f64 React Project DONE 2 rokov pred
concat.js c722a49f64 React Project DONE 2 rokov pred
concatLimit.js c722a49f64 React Project DONE 2 rokov pred
concatSeries.js c722a49f64 React Project DONE 2 rokov pred
constant.js c722a49f64 React Project DONE 2 rokov pred
detect.js c722a49f64 React Project DONE 2 rokov pred
detectLimit.js c722a49f64 React Project DONE 2 rokov pred
detectSeries.js c722a49f64 React Project DONE 2 rokov pred
dir.js c722a49f64 React Project DONE 2 rokov pred
doDuring.js c722a49f64 React Project DONE 2 rokov pred
doUntil.js c722a49f64 React Project DONE 2 rokov pred
doWhilst.js c722a49f64 React Project DONE 2 rokov pred
during.js c722a49f64 React Project DONE 2 rokov pred
each.js c722a49f64 React Project DONE 2 rokov pred
eachLimit.js c722a49f64 React Project DONE 2 rokov pred
eachOf.js c722a49f64 React Project DONE 2 rokov pred
eachOfLimit.js c722a49f64 React Project DONE 2 rokov pred
eachOfSeries.js c722a49f64 React Project DONE 2 rokov pred
eachSeries.js c722a49f64 React Project DONE 2 rokov pred
ensureAsync.js c722a49f64 React Project DONE 2 rokov pred
every.js c722a49f64 React Project DONE 2 rokov pred
everyLimit.js c722a49f64 React Project DONE 2 rokov pred
everySeries.js c722a49f64 React Project DONE 2 rokov pred
filter.js c722a49f64 React Project DONE 2 rokov pred
filterLimit.js c722a49f64 React Project DONE 2 rokov pred
filterSeries.js c722a49f64 React Project DONE 2 rokov pred
find.js c722a49f64 React Project DONE 2 rokov pred
findLimit.js c722a49f64 React Project DONE 2 rokov pred
findSeries.js c722a49f64 React Project DONE 2 rokov pred
foldl.js c722a49f64 React Project DONE 2 rokov pred
foldr.js c722a49f64 React Project DONE 2 rokov pred
forEach.js c722a49f64 React Project DONE 2 rokov pred
forEachLimit.js c722a49f64 React Project DONE 2 rokov pred
forEachOf.js c722a49f64 React Project DONE 2 rokov pred
forEachOfLimit.js c722a49f64 React Project DONE 2 rokov pred
forEachOfSeries.js c722a49f64 React Project DONE 2 rokov pred
forEachSeries.js c722a49f64 React Project DONE 2 rokov pred
forever.js c722a49f64 React Project DONE 2 rokov pred
groupBy.js c722a49f64 React Project DONE 2 rokov pred
groupByLimit.js c722a49f64 React Project DONE 2 rokov pred
groupBySeries.js c722a49f64 React Project DONE 2 rokov pred
index.js c722a49f64 React Project DONE 2 rokov pred
inject.js c722a49f64 React Project DONE 2 rokov pred
log.js c722a49f64 React Project DONE 2 rokov pred
map.js c722a49f64 React Project DONE 2 rokov pred
mapLimit.js c722a49f64 React Project DONE 2 rokov pred
mapSeries.js c722a49f64 React Project DONE 2 rokov pred
mapValues.js c722a49f64 React Project DONE 2 rokov pred
mapValuesLimit.js c722a49f64 React Project DONE 2 rokov pred
mapValuesSeries.js c722a49f64 React Project DONE 2 rokov pred
memoize.js c722a49f64 React Project DONE 2 rokov pred
nextTick.js c722a49f64 React Project DONE 2 rokov pred
package.json c722a49f64 React Project DONE 2 rokov pred
parallel.js c722a49f64 React Project DONE 2 rokov pred
parallelLimit.js c722a49f64 React Project DONE 2 rokov pred
priorityQueue.js c722a49f64 React Project DONE 2 rokov pred
queue.js c722a49f64 React Project DONE 2 rokov pred
race.js c722a49f64 React Project DONE 2 rokov pred
reduce.js c722a49f64 React Project DONE 2 rokov pred
reduceRight.js c722a49f64 React Project DONE 2 rokov pred
reflect.js c722a49f64 React Project DONE 2 rokov pred
reflectAll.js c722a49f64 React Project DONE 2 rokov pred
reject.js c722a49f64 React Project DONE 2 rokov pred
rejectLimit.js c722a49f64 React Project DONE 2 rokov pred
rejectSeries.js c722a49f64 React Project DONE 2 rokov pred
retry.js c722a49f64 React Project DONE 2 rokov pred
retryable.js c722a49f64 React Project DONE 2 rokov pred
select.js c722a49f64 React Project DONE 2 rokov pred
selectLimit.js c722a49f64 React Project DONE 2 rokov pred
selectSeries.js c722a49f64 React Project DONE 2 rokov pred
seq.js c722a49f64 React Project DONE 2 rokov pred
series.js c722a49f64 React Project DONE 2 rokov pred
setImmediate.js c722a49f64 React Project DONE 2 rokov pred
some.js c722a49f64 React Project DONE 2 rokov pred
someLimit.js c722a49f64 React Project DONE 2 rokov pred
someSeries.js c722a49f64 React Project DONE 2 rokov pred
sortBy.js c722a49f64 React Project DONE 2 rokov pred
timeout.js c722a49f64 React Project DONE 2 rokov pred
times.js c722a49f64 React Project DONE 2 rokov pred
timesLimit.js c722a49f64 React Project DONE 2 rokov pred
timesSeries.js c722a49f64 React Project DONE 2 rokov pred
transform.js c722a49f64 React Project DONE 2 rokov pred
tryEach.js c722a49f64 React Project DONE 2 rokov pred
unmemoize.js c722a49f64 React Project DONE 2 rokov pred
until.js c722a49f64 React Project DONE 2 rokov pred
waterfall.js c722a49f64 React Project DONE 2 rokov pred
whilst.js c722a49f64 React Project DONE 2 rokov pred
wrapSync.js c722a49f64 React Project DONE 2 rokov pred

README.md

Async Logo

Build Status via Travis CI NPM version Coverage Status 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)
})