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