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