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

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