Gazebo_simulation-Frontend/node_modules/async
Riddhi Dave c586e2ed33 session update with django backend 2021-02-25 10:57:52 -05:00
..
dist React files 2020-12-21 10:29:31 -05:00
internal React files 2020-12-21 10:29:31 -05:00
CHANGELOG.md React files 2020-12-21 10:29:31 -05:00
LICENSE React files 2020-12-21 10:29:31 -05:00
README.md React files 2020-12-21 10:29:31 -05:00
all.js React files 2020-12-21 10:29:31 -05:00
allLimit.js React files 2020-12-21 10:29:31 -05:00
allSeries.js React files 2020-12-21 10:29:31 -05:00
any.js React files 2020-12-21 10:29:31 -05:00
anyLimit.js React files 2020-12-21 10:29:31 -05:00
anySeries.js React files 2020-12-21 10:29:31 -05:00
apply.js React files 2020-12-21 10:29:31 -05:00
applyEach.js React files 2020-12-21 10:29:31 -05:00
applyEachSeries.js React files 2020-12-21 10:29:31 -05:00
asyncify.js React files 2020-12-21 10:29:31 -05:00
auto.js React files 2020-12-21 10:29:31 -05:00
autoInject.js React files 2020-12-21 10:29:31 -05:00
bower.json React files 2020-12-21 10:29:31 -05:00
cargo.js React files 2020-12-21 10:29:31 -05:00
compose.js React files 2020-12-21 10:29:31 -05:00
concat.js React files 2020-12-21 10:29:31 -05:00
concatLimit.js React files 2020-12-21 10:29:31 -05:00
concatSeries.js React files 2020-12-21 10:29:31 -05:00
constant.js React files 2020-12-21 10:29:31 -05:00
detect.js React files 2020-12-21 10:29:31 -05:00
detectLimit.js React files 2020-12-21 10:29:31 -05:00
detectSeries.js React files 2020-12-21 10:29:31 -05:00
dir.js React files 2020-12-21 10:29:31 -05:00
doDuring.js React files 2020-12-21 10:29:31 -05:00
doUntil.js React files 2020-12-21 10:29:31 -05:00
doWhilst.js React files 2020-12-21 10:29:31 -05:00
during.js React files 2020-12-21 10:29:31 -05:00
each.js React files 2020-12-21 10:29:31 -05:00
eachLimit.js React files 2020-12-21 10:29:31 -05:00
eachOf.js React files 2020-12-21 10:29:31 -05:00
eachOfLimit.js React files 2020-12-21 10:29:31 -05:00
eachOfSeries.js React files 2020-12-21 10:29:31 -05:00
eachSeries.js React files 2020-12-21 10:29:31 -05:00
ensureAsync.js React files 2020-12-21 10:29:31 -05:00
every.js React files 2020-12-21 10:29:31 -05:00
everyLimit.js React files 2020-12-21 10:29:31 -05:00
everySeries.js React files 2020-12-21 10:29:31 -05:00
filter.js React files 2020-12-21 10:29:31 -05:00
filterLimit.js React files 2020-12-21 10:29:31 -05:00
filterSeries.js React files 2020-12-21 10:29:31 -05:00
find.js React files 2020-12-21 10:29:31 -05:00
findLimit.js React files 2020-12-21 10:29:31 -05:00
findSeries.js React files 2020-12-21 10:29:31 -05:00
foldl.js React files 2020-12-21 10:29:31 -05:00
foldr.js React files 2020-12-21 10:29:31 -05:00
forEach.js React files 2020-12-21 10:29:31 -05:00
forEachLimit.js React files 2020-12-21 10:29:31 -05:00
forEachOf.js React files 2020-12-21 10:29:31 -05:00
forEachOfLimit.js React files 2020-12-21 10:29:31 -05:00
forEachOfSeries.js React files 2020-12-21 10:29:31 -05:00
forEachSeries.js React files 2020-12-21 10:29:31 -05:00
forever.js React files 2020-12-21 10:29:31 -05:00
groupBy.js React files 2020-12-21 10:29:31 -05:00
groupByLimit.js React files 2020-12-21 10:29:31 -05:00
groupBySeries.js React files 2020-12-21 10:29:31 -05:00
index.js React files 2020-12-21 10:29:31 -05:00
inject.js React files 2020-12-21 10:29:31 -05:00
log.js React files 2020-12-21 10:29:31 -05:00
map.js React files 2020-12-21 10:29:31 -05:00
mapLimit.js React files 2020-12-21 10:29:31 -05:00
mapSeries.js React files 2020-12-21 10:29:31 -05:00
mapValues.js React files 2020-12-21 10:29:31 -05:00
mapValuesLimit.js React files 2020-12-21 10:29:31 -05:00
mapValuesSeries.js React files 2020-12-21 10:29:31 -05:00
memoize.js React files 2020-12-21 10:29:31 -05:00
nextTick.js React files 2020-12-21 10:29:31 -05:00
package.json session update with django backend 2021-02-25 10:57:52 -05:00
parallel.js React files 2020-12-21 10:29:31 -05:00
parallelLimit.js React files 2020-12-21 10:29:31 -05:00
priorityQueue.js React files 2020-12-21 10:29:31 -05:00
queue.js React files 2020-12-21 10:29:31 -05:00
race.js React files 2020-12-21 10:29:31 -05:00
reduce.js React files 2020-12-21 10:29:31 -05:00
reduceRight.js React files 2020-12-21 10:29:31 -05:00
reflect.js React files 2020-12-21 10:29:31 -05:00
reflectAll.js React files 2020-12-21 10:29:31 -05:00
reject.js React files 2020-12-21 10:29:31 -05:00
rejectLimit.js React files 2020-12-21 10:29:31 -05:00
rejectSeries.js React files 2020-12-21 10:29:31 -05:00
retry.js React files 2020-12-21 10:29:31 -05:00
retryable.js React files 2020-12-21 10:29:31 -05:00
select.js React files 2020-12-21 10:29:31 -05:00
selectLimit.js React files 2020-12-21 10:29:31 -05:00
selectSeries.js React files 2020-12-21 10:29:31 -05:00
seq.js React files 2020-12-21 10:29:31 -05:00
series.js React files 2020-12-21 10:29:31 -05:00
setImmediate.js React files 2020-12-21 10:29:31 -05:00
some.js React files 2020-12-21 10:29:31 -05:00
someLimit.js React files 2020-12-21 10:29:31 -05:00
someSeries.js React files 2020-12-21 10:29:31 -05:00
sortBy.js React files 2020-12-21 10:29:31 -05:00
timeout.js React files 2020-12-21 10:29:31 -05:00
times.js React files 2020-12-21 10:29:31 -05:00
timesLimit.js React files 2020-12-21 10:29:31 -05:00
timesSeries.js React files 2020-12-21 10:29:31 -05:00
transform.js React files 2020-12-21 10:29:31 -05:00
tryEach.js React files 2020-12-21 10:29:31 -05:00
unmemoize.js React files 2020-12-21 10:29:31 -05:00
until.js React files 2020-12-21 10:29:31 -05:00
waterfall.js React files 2020-12-21 10:29:31 -05:00
whilst.js React files 2020-12-21 10:29:31 -05:00
wrapSync.js React files 2020-12-21 10:29:31 -05:00

README.md

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