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

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