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

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)
})