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

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