xtf e538decb69 药品分类 11 mēneši atpakaļ
..
internal e538decb69 药品分类 11 mēneši atpakaļ
CHANGELOG.md e538decb69 药品分类 11 mēneši atpakaļ
LICENSE e538decb69 药品分类 11 mēneši atpakaļ
README.md e538decb69 药品分类 11 mēneši atpakaļ
all.js e538decb69 药品分类 11 mēneši atpakaļ
allLimit.js e538decb69 药品分类 11 mēneši atpakaļ
allSeries.js e538decb69 药品分类 11 mēneši atpakaļ
any.js e538decb69 药品分类 11 mēneši atpakaļ
anyLimit.js e538decb69 药品分类 11 mēneši atpakaļ
anySeries.js e538decb69 药品分类 11 mēneši atpakaļ
apply.js e538decb69 药品分类 11 mēneši atpakaļ
applyEach.js e538decb69 药品分类 11 mēneši atpakaļ
applyEachSeries.js e538decb69 药品分类 11 mēneši atpakaļ
asyncify.js e538decb69 药品分类 11 mēneši atpakaļ
auto.js e538decb69 药品分类 11 mēneši atpakaļ
autoInject.js e538decb69 药品分类 11 mēneši atpakaļ
bower.json e538decb69 药品分类 11 mēneši atpakaļ
cargo.js e538decb69 药品分类 11 mēneši atpakaļ
compose.js e538decb69 药品分类 11 mēneši atpakaļ
concat.js e538decb69 药品分类 11 mēneši atpakaļ
concatLimit.js e538decb69 药品分类 11 mēneši atpakaļ
concatSeries.js e538decb69 药品分类 11 mēneši atpakaļ
constant.js e538decb69 药品分类 11 mēneši atpakaļ
detect.js e538decb69 药品分类 11 mēneši atpakaļ
detectLimit.js e538decb69 药品分类 11 mēneši atpakaļ
detectSeries.js e538decb69 药品分类 11 mēneši atpakaļ
dir.js e538decb69 药品分类 11 mēneši atpakaļ
doDuring.js e538decb69 药品分类 11 mēneši atpakaļ
doUntil.js e538decb69 药品分类 11 mēneši atpakaļ
doWhilst.js e538decb69 药品分类 11 mēneši atpakaļ
during.js e538decb69 药品分类 11 mēneši atpakaļ
each.js e538decb69 药品分类 11 mēneši atpakaļ
eachLimit.js e538decb69 药品分类 11 mēneši atpakaļ
eachOf.js e538decb69 药品分类 11 mēneši atpakaļ
eachOfLimit.js e538decb69 药品分类 11 mēneši atpakaļ
eachOfSeries.js e538decb69 药品分类 11 mēneši atpakaļ
eachSeries.js e538decb69 药品分类 11 mēneši atpakaļ
ensureAsync.js e538decb69 药品分类 11 mēneši atpakaļ
every.js e538decb69 药品分类 11 mēneši atpakaļ
everyLimit.js e538decb69 药品分类 11 mēneši atpakaļ
everySeries.js e538decb69 药品分类 11 mēneši atpakaļ
filter.js e538decb69 药品分类 11 mēneši atpakaļ
filterLimit.js e538decb69 药品分类 11 mēneši atpakaļ
filterSeries.js e538decb69 药品分类 11 mēneši atpakaļ
find.js e538decb69 药品分类 11 mēneši atpakaļ
findLimit.js e538decb69 药品分类 11 mēneši atpakaļ
findSeries.js e538decb69 药品分类 11 mēneši atpakaļ
foldl.js e538decb69 药品分类 11 mēneši atpakaļ
foldr.js e538decb69 药品分类 11 mēneši atpakaļ
forEach.js e538decb69 药品分类 11 mēneši atpakaļ
forEachLimit.js e538decb69 药品分类 11 mēneši atpakaļ
forEachOf.js e538decb69 药品分类 11 mēneši atpakaļ
forEachOfLimit.js e538decb69 药品分类 11 mēneši atpakaļ
forEachOfSeries.js e538decb69 药品分类 11 mēneši atpakaļ
forEachSeries.js e538decb69 药品分类 11 mēneši atpakaļ
forever.js e538decb69 药品分类 11 mēneši atpakaļ
groupBy.js e538decb69 药品分类 11 mēneši atpakaļ
groupByLimit.js e538decb69 药品分类 11 mēneši atpakaļ
groupBySeries.js e538decb69 药品分类 11 mēneši atpakaļ
index.js e538decb69 药品分类 11 mēneši atpakaļ
inject.js e538decb69 药品分类 11 mēneši atpakaļ
log.js e538decb69 药品分类 11 mēneši atpakaļ
map.js e538decb69 药品分类 11 mēneši atpakaļ
mapLimit.js e538decb69 药品分类 11 mēneši atpakaļ
mapSeries.js e538decb69 药品分类 11 mēneši atpakaļ
mapValues.js e538decb69 药品分类 11 mēneši atpakaļ
mapValuesLimit.js e538decb69 药品分类 11 mēneši atpakaļ
mapValuesSeries.js e538decb69 药品分类 11 mēneši atpakaļ
memoize.js e538decb69 药品分类 11 mēneši atpakaļ
nextTick.js e538decb69 药品分类 11 mēneši atpakaļ
package.json e538decb69 药品分类 11 mēneši atpakaļ
parallel.js e538decb69 药品分类 11 mēneši atpakaļ
parallelLimit.js e538decb69 药品分类 11 mēneši atpakaļ
priorityQueue.js e538decb69 药品分类 11 mēneši atpakaļ
queue.js e538decb69 药品分类 11 mēneši atpakaļ
race.js e538decb69 药品分类 11 mēneši atpakaļ
reduce.js e538decb69 药品分类 11 mēneši atpakaļ
reduceRight.js e538decb69 药品分类 11 mēneši atpakaļ
reflect.js e538decb69 药品分类 11 mēneši atpakaļ
reflectAll.js e538decb69 药品分类 11 mēneši atpakaļ
reject.js e538decb69 药品分类 11 mēneši atpakaļ
rejectLimit.js e538decb69 药品分类 11 mēneši atpakaļ
rejectSeries.js e538decb69 药品分类 11 mēneši atpakaļ
retry.js e538decb69 药品分类 11 mēneši atpakaļ
retryable.js e538decb69 药品分类 11 mēneši atpakaļ
select.js e538decb69 药品分类 11 mēneši atpakaļ
selectLimit.js e538decb69 药品分类 11 mēneši atpakaļ
selectSeries.js e538decb69 药品分类 11 mēneši atpakaļ
seq.js e538decb69 药品分类 11 mēneši atpakaļ
series.js e538decb69 药品分类 11 mēneši atpakaļ
setImmediate.js e538decb69 药品分类 11 mēneši atpakaļ
some.js e538decb69 药品分类 11 mēneši atpakaļ
someLimit.js e538decb69 药品分类 11 mēneši atpakaļ
someSeries.js e538decb69 药品分类 11 mēneši atpakaļ
sortBy.js e538decb69 药品分类 11 mēneši atpakaļ
timeout.js e538decb69 药品分类 11 mēneši atpakaļ
times.js e538decb69 药品分类 11 mēneši atpakaļ
timesLimit.js e538decb69 药品分类 11 mēneši atpakaļ
timesSeries.js e538decb69 药品分类 11 mēneši atpakaļ
transform.js e538decb69 药品分类 11 mēneši atpakaļ
tryEach.js e538decb69 药品分类 11 mēneši atpakaļ
unmemoize.js e538decb69 药品分类 11 mēneši atpakaļ
until.js e538decb69 药品分类 11 mēneši atpakaļ
waterfall.js e538decb69 药品分类 11 mēneši atpakaļ
whilst.js e538decb69 药品分类 11 mēneši atpakaļ
wrapSync.js e538decb69 药品分类 11 mēneši 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)
})