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

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