Bakhtina Sofya b84cb877be 1st comm 3 týždňov pred
..
dist b84cb877be 1st comm 3 týždňov pred
internal b84cb877be 1st comm 3 týždňov pred
CHANGELOG.md b84cb877be 1st comm 3 týždňov pred
LICENSE b84cb877be 1st comm 3 týždňov pred
README.md b84cb877be 1st comm 3 týždňov pred
all.js b84cb877be 1st comm 3 týždňov pred
allLimit.js b84cb877be 1st comm 3 týždňov pred
allSeries.js b84cb877be 1st comm 3 týždňov pred
any.js b84cb877be 1st comm 3 týždňov pred
anyLimit.js b84cb877be 1st comm 3 týždňov pred
anySeries.js b84cb877be 1st comm 3 týždňov pred
apply.js b84cb877be 1st comm 3 týždňov pred
applyEach.js b84cb877be 1st comm 3 týždňov pred
applyEachSeries.js b84cb877be 1st comm 3 týždňov pred
asyncify.js b84cb877be 1st comm 3 týždňov pred
auto.js b84cb877be 1st comm 3 týždňov pred
autoInject.js b84cb877be 1st comm 3 týždňov pred
bower.json b84cb877be 1st comm 3 týždňov pred
cargo.js b84cb877be 1st comm 3 týždňov pred
compose.js b84cb877be 1st comm 3 týždňov pred
concat.js b84cb877be 1st comm 3 týždňov pred
concatLimit.js b84cb877be 1st comm 3 týždňov pred
concatSeries.js b84cb877be 1st comm 3 týždňov pred
constant.js b84cb877be 1st comm 3 týždňov pred
detect.js b84cb877be 1st comm 3 týždňov pred
detectLimit.js b84cb877be 1st comm 3 týždňov pred
detectSeries.js b84cb877be 1st comm 3 týždňov pred
dir.js b84cb877be 1st comm 3 týždňov pred
doDuring.js b84cb877be 1st comm 3 týždňov pred
doUntil.js b84cb877be 1st comm 3 týždňov pred
doWhilst.js b84cb877be 1st comm 3 týždňov pred
during.js b84cb877be 1st comm 3 týždňov pred
each.js b84cb877be 1st comm 3 týždňov pred
eachLimit.js b84cb877be 1st comm 3 týždňov pred
eachOf.js b84cb877be 1st comm 3 týždňov pred
eachOfLimit.js b84cb877be 1st comm 3 týždňov pred
eachOfSeries.js b84cb877be 1st comm 3 týždňov pred
eachSeries.js b84cb877be 1st comm 3 týždňov pred
ensureAsync.js b84cb877be 1st comm 3 týždňov pred
every.js b84cb877be 1st comm 3 týždňov pred
everyLimit.js b84cb877be 1st comm 3 týždňov pred
everySeries.js b84cb877be 1st comm 3 týždňov pred
filter.js b84cb877be 1st comm 3 týždňov pred
filterLimit.js b84cb877be 1st comm 3 týždňov pred
filterSeries.js b84cb877be 1st comm 3 týždňov pred
find.js b84cb877be 1st comm 3 týždňov pred
findLimit.js b84cb877be 1st comm 3 týždňov pred
findSeries.js b84cb877be 1st comm 3 týždňov pred
foldl.js b84cb877be 1st comm 3 týždňov pred
foldr.js b84cb877be 1st comm 3 týždňov pred
forEach.js b84cb877be 1st comm 3 týždňov pred
forEachLimit.js b84cb877be 1st comm 3 týždňov pred
forEachOf.js b84cb877be 1st comm 3 týždňov pred
forEachOfLimit.js b84cb877be 1st comm 3 týždňov pred
forEachOfSeries.js b84cb877be 1st comm 3 týždňov pred
forEachSeries.js b84cb877be 1st comm 3 týždňov pred
forever.js b84cb877be 1st comm 3 týždňov pred
groupBy.js b84cb877be 1st comm 3 týždňov pred
groupByLimit.js b84cb877be 1st comm 3 týždňov pred
groupBySeries.js b84cb877be 1st comm 3 týždňov pred
index.js b84cb877be 1st comm 3 týždňov pred
inject.js b84cb877be 1st comm 3 týždňov pred
log.js b84cb877be 1st comm 3 týždňov pred
map.js b84cb877be 1st comm 3 týždňov pred
mapLimit.js b84cb877be 1st comm 3 týždňov pred
mapSeries.js b84cb877be 1st comm 3 týždňov pred
mapValues.js b84cb877be 1st comm 3 týždňov pred
mapValuesLimit.js b84cb877be 1st comm 3 týždňov pred
mapValuesSeries.js b84cb877be 1st comm 3 týždňov pred
memoize.js b84cb877be 1st comm 3 týždňov pred
nextTick.js b84cb877be 1st comm 3 týždňov pred
package.json b84cb877be 1st comm 3 týždňov pred
parallel.js b84cb877be 1st comm 3 týždňov pred
parallelLimit.js b84cb877be 1st comm 3 týždňov pred
priorityQueue.js b84cb877be 1st comm 3 týždňov pred
queue.js b84cb877be 1st comm 3 týždňov pred
race.js b84cb877be 1st comm 3 týždňov pred
reduce.js b84cb877be 1st comm 3 týždňov pred
reduceRight.js b84cb877be 1st comm 3 týždňov pred
reflect.js b84cb877be 1st comm 3 týždňov pred
reflectAll.js b84cb877be 1st comm 3 týždňov pred
reject.js b84cb877be 1st comm 3 týždňov pred
rejectLimit.js b84cb877be 1st comm 3 týždňov pred
rejectSeries.js b84cb877be 1st comm 3 týždňov pred
retry.js b84cb877be 1st comm 3 týždňov pred
retryable.js b84cb877be 1st comm 3 týždňov pred
select.js b84cb877be 1st comm 3 týždňov pred
selectLimit.js b84cb877be 1st comm 3 týždňov pred
selectSeries.js b84cb877be 1st comm 3 týždňov pred
seq.js b84cb877be 1st comm 3 týždňov pred
series.js b84cb877be 1st comm 3 týždňov pred
setImmediate.js b84cb877be 1st comm 3 týždňov pred
some.js b84cb877be 1st comm 3 týždňov pred
someLimit.js b84cb877be 1st comm 3 týždňov pred
someSeries.js b84cb877be 1st comm 3 týždňov pred
sortBy.js b84cb877be 1st comm 3 týždňov pred
timeout.js b84cb877be 1st comm 3 týždňov pred
times.js b84cb877be 1st comm 3 týždňov pred
timesLimit.js b84cb877be 1st comm 3 týždňov pred
timesSeries.js b84cb877be 1st comm 3 týždňov pred
transform.js b84cb877be 1st comm 3 týždňov pred
tryEach.js b84cb877be 1st comm 3 týždňov pred
unmemoize.js b84cb877be 1st comm 3 týždňov pred
until.js b84cb877be 1st comm 3 týždňov pred
waterfall.js b84cb877be 1st comm 3 týždňov pred
whilst.js b84cb877be 1st comm 3 týždňov pred
wrapSync.js b84cb877be 1st comm 3 týždňov 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)
})