This repository has been archived on 2025-12-28. You can view files and clone it, but cannot push or open issues or pull requests.
inkletblot-com-v1/node_modules/async
2019-12-02 12:10:45 +10:30
..
dist initial commit 2019-12-02 12:10:45 +10:30
internal initial commit 2019-12-02 12:10:45 +10:30
all.js initial commit 2019-12-02 12:10:45 +10:30
allLimit.js initial commit 2019-12-02 12:10:45 +10:30
allSeries.js initial commit 2019-12-02 12:10:45 +10:30
any.js initial commit 2019-12-02 12:10:45 +10:30
anyLimit.js initial commit 2019-12-02 12:10:45 +10:30
anySeries.js initial commit 2019-12-02 12:10:45 +10:30
apply.js initial commit 2019-12-02 12:10:45 +10:30
applyEach.js initial commit 2019-12-02 12:10:45 +10:30
applyEachSeries.js initial commit 2019-12-02 12:10:45 +10:30
asyncify.js initial commit 2019-12-02 12:10:45 +10:30
auto.js initial commit 2019-12-02 12:10:45 +10:30
autoInject.js initial commit 2019-12-02 12:10:45 +10:30
bower.json initial commit 2019-12-02 12:10:45 +10:30
cargo.js initial commit 2019-12-02 12:10:45 +10:30
CHANGELOG.md initial commit 2019-12-02 12:10:45 +10:30
compose.js initial commit 2019-12-02 12:10:45 +10:30
concat.js initial commit 2019-12-02 12:10:45 +10:30
concatLimit.js initial commit 2019-12-02 12:10:45 +10:30
concatSeries.js initial commit 2019-12-02 12:10:45 +10:30
constant.js initial commit 2019-12-02 12:10:45 +10:30
detect.js initial commit 2019-12-02 12:10:45 +10:30
detectLimit.js initial commit 2019-12-02 12:10:45 +10:30
detectSeries.js initial commit 2019-12-02 12:10:45 +10:30
dir.js initial commit 2019-12-02 12:10:45 +10:30
doDuring.js initial commit 2019-12-02 12:10:45 +10:30
doUntil.js initial commit 2019-12-02 12:10:45 +10:30
doWhilst.js initial commit 2019-12-02 12:10:45 +10:30
during.js initial commit 2019-12-02 12:10:45 +10:30
each.js initial commit 2019-12-02 12:10:45 +10:30
eachLimit.js initial commit 2019-12-02 12:10:45 +10:30
eachOf.js initial commit 2019-12-02 12:10:45 +10:30
eachOfLimit.js initial commit 2019-12-02 12:10:45 +10:30
eachOfSeries.js initial commit 2019-12-02 12:10:45 +10:30
eachSeries.js initial commit 2019-12-02 12:10:45 +10:30
ensureAsync.js initial commit 2019-12-02 12:10:45 +10:30
every.js initial commit 2019-12-02 12:10:45 +10:30
everyLimit.js initial commit 2019-12-02 12:10:45 +10:30
everySeries.js initial commit 2019-12-02 12:10:45 +10:30
filter.js initial commit 2019-12-02 12:10:45 +10:30
filterLimit.js initial commit 2019-12-02 12:10:45 +10:30
filterSeries.js initial commit 2019-12-02 12:10:45 +10:30
find.js initial commit 2019-12-02 12:10:45 +10:30
findLimit.js initial commit 2019-12-02 12:10:45 +10:30
findSeries.js initial commit 2019-12-02 12:10:45 +10:30
foldl.js initial commit 2019-12-02 12:10:45 +10:30
foldr.js initial commit 2019-12-02 12:10:45 +10:30
forEach.js initial commit 2019-12-02 12:10:45 +10:30
forEachLimit.js initial commit 2019-12-02 12:10:45 +10:30
forEachOf.js initial commit 2019-12-02 12:10:45 +10:30
forEachOfLimit.js initial commit 2019-12-02 12:10:45 +10:30
forEachOfSeries.js initial commit 2019-12-02 12:10:45 +10:30
forEachSeries.js initial commit 2019-12-02 12:10:45 +10:30
forever.js initial commit 2019-12-02 12:10:45 +10:30
groupBy.js initial commit 2019-12-02 12:10:45 +10:30
groupByLimit.js initial commit 2019-12-02 12:10:45 +10:30
groupBySeries.js initial commit 2019-12-02 12:10:45 +10:30
index.js initial commit 2019-12-02 12:10:45 +10:30
inject.js initial commit 2019-12-02 12:10:45 +10:30
LICENSE initial commit 2019-12-02 12:10:45 +10:30
log.js initial commit 2019-12-02 12:10:45 +10:30
map.js initial commit 2019-12-02 12:10:45 +10:30
mapLimit.js initial commit 2019-12-02 12:10:45 +10:30
mapSeries.js initial commit 2019-12-02 12:10:45 +10:30
mapValues.js initial commit 2019-12-02 12:10:45 +10:30
mapValuesLimit.js initial commit 2019-12-02 12:10:45 +10:30
mapValuesSeries.js initial commit 2019-12-02 12:10:45 +10:30
memoize.js initial commit 2019-12-02 12:10:45 +10:30
nextTick.js initial commit 2019-12-02 12:10:45 +10:30
package.json initial commit 2019-12-02 12:10:45 +10:30
parallel.js initial commit 2019-12-02 12:10:45 +10:30
parallelLimit.js initial commit 2019-12-02 12:10:45 +10:30
priorityQueue.js initial commit 2019-12-02 12:10:45 +10:30
queue.js initial commit 2019-12-02 12:10:45 +10:30
race.js initial commit 2019-12-02 12:10:45 +10:30
README.md initial commit 2019-12-02 12:10:45 +10:30
reduce.js initial commit 2019-12-02 12:10:45 +10:30
reduceRight.js initial commit 2019-12-02 12:10:45 +10:30
reflect.js initial commit 2019-12-02 12:10:45 +10:30
reflectAll.js initial commit 2019-12-02 12:10:45 +10:30
reject.js initial commit 2019-12-02 12:10:45 +10:30
rejectLimit.js initial commit 2019-12-02 12:10:45 +10:30
rejectSeries.js initial commit 2019-12-02 12:10:45 +10:30
retry.js initial commit 2019-12-02 12:10:45 +10:30
retryable.js initial commit 2019-12-02 12:10:45 +10:30
select.js initial commit 2019-12-02 12:10:45 +10:30
selectLimit.js initial commit 2019-12-02 12:10:45 +10:30
selectSeries.js initial commit 2019-12-02 12:10:45 +10:30
seq.js initial commit 2019-12-02 12:10:45 +10:30
series.js initial commit 2019-12-02 12:10:45 +10:30
setImmediate.js initial commit 2019-12-02 12:10:45 +10:30
some.js initial commit 2019-12-02 12:10:45 +10:30
someLimit.js initial commit 2019-12-02 12:10:45 +10:30
someSeries.js initial commit 2019-12-02 12:10:45 +10:30
sortBy.js initial commit 2019-12-02 12:10:45 +10:30
timeout.js initial commit 2019-12-02 12:10:45 +10:30
times.js initial commit 2019-12-02 12:10:45 +10:30
timesLimit.js initial commit 2019-12-02 12:10:45 +10:30
timesSeries.js initial commit 2019-12-02 12:10:45 +10:30
transform.js initial commit 2019-12-02 12:10:45 +10:30
tryEach.js initial commit 2019-12-02 12:10:45 +10:30
unmemoize.js initial commit 2019-12-02 12:10:45 +10:30
until.js initial commit 2019-12-02 12:10:45 +10:30
waterfall.js initial commit 2019-12-02 12:10:45 +10:30
whilst.js initial commit 2019-12-02 12:10:45 +10:30
wrapSync.js initial commit 2019-12-02 12:10:45 +10:30

Async Logo

Build Status via Travis CI NPM version Coverage Status Join the chat at https://gitter.im/caolan/async 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)
})