xtf e538decb69 药品分类 11 ماه پیش
..
LICENSE e538decb69 药品分类 11 ماه پیش
README.md e538decb69 药品分类 11 ماه پیش
all.js e538decb69 药品分类 11 ماه پیش
allLimit.js e538decb69 药品分类 11 ماه پیش
allSeries.js e538decb69 药品分类 11 ماه پیش
angelFall.js e538decb69 药品分类 11 ماه پیش
any.js e538decb69 药品分类 11 ماه پیش
anyLimit.js e538decb69 药品分类 11 ماه پیش
anySeries.js e538decb69 药品分类 11 ماه پیش
apply.js e538decb69 药品分类 11 ماه پیش
applyEach.js e538decb69 药品分类 11 ماه پیش
applyEachSeries.js e538decb69 药品分类 11 ماه پیش
async.js e538decb69 药品分类 11 ماه پیش
async.min.js e538decb69 药品分类 11 ماه پیش
asyncify.js e538decb69 药品分类 11 ماه پیش
auto.js e538decb69 药品分类 11 ماه پیش
autoInject.js e538decb69 药品分类 11 ماه پیش
cargo.js e538decb69 药品分类 11 ماه پیش
compose.js e538decb69 药品分类 11 ماه پیش
concat.js e538decb69 药品分类 11 ماه پیش
concatLimit.js e538decb69 药品分类 11 ماه پیش
concatSeries.js e538decb69 药品分类 11 ماه پیش
constant.js e538decb69 药品分类 11 ماه پیش
createLogger.js e538decb69 药品分类 11 ماه پیش
detect.js e538decb69 药品分类 11 ماه پیش
detectLimit.js e538decb69 药品分类 11 ماه پیش
detectSeries.js e538decb69 药品分类 11 ماه پیش
dir.js e538decb69 药品分类 11 ماه پیش
doDuring.js e538decb69 药品分类 11 ماه پیش
doUntil.js e538decb69 药品分类 11 ماه پیش
doWhilst.js e538decb69 药品分类 11 ماه پیش
during.js e538decb69 药品分类 11 ماه پیش
each.js e538decb69 药品分类 11 ماه پیش
eachLimit.js e538decb69 药品分类 11 ماه پیش
eachOf.js e538decb69 药品分类 11 ماه پیش
eachOfLimit.js e538decb69 药品分类 11 ماه پیش
eachOfSeries.js e538decb69 药品分类 11 ماه پیش
eachSeries.js e538decb69 药品分类 11 ماه پیش
ensureAsync.js e538decb69 药品分类 11 ماه پیش
every.js e538decb69 药品分类 11 ماه پیش
everyLimit.js e538decb69 药品分类 11 ماه پیش
everySeries.js e538decb69 药品分类 11 ماه پیش
fast.js e538decb69 药品分类 11 ماه پیش
filter.js e538decb69 药品分类 11 ماه پیش
filterLimit.js e538decb69 药品分类 11 ماه پیش
filterSeries.js e538decb69 药品分类 11 ماه پیش
find.js e538decb69 药品分类 11 ماه پیش
findLimit.js e538decb69 药品分类 11 ماه پیش
findSeries.js e538decb69 药品分类 11 ماه پیش
foldl.js e538decb69 药品分类 11 ماه پیش
foldr.js e538decb69 药品分类 11 ماه پیش
forEach.js e538decb69 药品分类 11 ماه پیش
forEachLimit.js e538decb69 药品分类 11 ماه پیش
forEachOf.js e538decb69 药品分类 11 ماه پیش
forEachOfLimit.js e538decb69 药品分类 11 ماه پیش
forEachOfSeries.js e538decb69 药品分类 11 ماه پیش
forEachSeries.js e538decb69 药品分类 11 ماه پیش
forever.js e538decb69 药品分类 11 ماه پیش
groupBy.js e538decb69 药品分类 11 ماه پیش
groupByLimit.js e538decb69 药品分类 11 ماه پیش
groupBySeries.js e538decb69 药品分类 11 ماه پیش
inject.js e538decb69 药品分类 11 ماه پیش
iterator.js e538decb69 药品分类 11 ماه پیش
log.js e538decb69 药品分类 11 ماه پیش
map.js e538decb69 药品分类 11 ماه پیش
mapLimit.js e538decb69 药品分类 11 ماه پیش
mapSeries.js e538decb69 药品分类 11 ماه پیش
mapValues.js e538decb69 药品分类 11 ماه پیش
mapValuesLimit.js e538decb69 药品分类 11 ماه پیش
mapValuesSeries.js e538decb69 药品分类 11 ماه پیش
memoize.js e538decb69 药品分类 11 ماه پیش
nextTick.js e538decb69 药品分类 11 ماه پیش
omit.js e538decb69 药品分类 11 ماه پیش
omitLimit.js e538decb69 药品分类 11 ماه پیش
omitSeries.js e538decb69 药品分类 11 ماه پیش
package.json e538decb69 药品分类 11 ماه پیش
parallel.js e538decb69 药品分类 11 ماه پیش
parallelLimit.js e538decb69 药品分类 11 ماه پیش
pick.js e538decb69 药品分类 11 ماه پیش
pickLimit.js e538decb69 药品分类 11 ماه پیش
pickSeries.js e538decb69 药品分类 11 ماه پیش
priorityQueue.js e538decb69 药品分类 11 ماه پیش
queue.js e538decb69 药品分类 11 ماه پیش
race.js e538decb69 药品分类 11 ماه پیش
reduce.js e538decb69 药品分类 11 ماه پیش
reduceRight.js e538decb69 药品分类 11 ماه پیش
reflect.js e538decb69 药品分类 11 ماه پیش
reflectAll.js e538decb69 药品分类 11 ماه پیش
reject.js e538decb69 药品分类 11 ماه پیش
rejectLimit.js e538decb69 药品分类 11 ماه پیش
rejectSeries.js e538decb69 药品分类 11 ماه پیش
retry.js e538decb69 药品分类 11 ماه پیش
retryable.js e538decb69 药品分类 11 ماه پیش
safe.js e538decb69 药品分类 11 ماه پیش
select.js e538decb69 药品分类 11 ماه پیش
selectLimit.js e538decb69 药品分类 11 ماه پیش
selectSeries.js e538decb69 药品分类 11 ماه پیش
seq.js e538decb69 药品分类 11 ماه پیش
series.js e538decb69 药品分类 11 ماه پیش
setImmediate.js e538decb69 药品分类 11 ماه پیش
some.js e538decb69 药品分类 11 ماه پیش
someLimit.js e538decb69 药品分类 11 ماه پیش
someSeries.js e538decb69 药品分类 11 ماه پیش
sortBy.js e538decb69 药品分类 11 ماه پیش
sortByLimit.js e538decb69 药品分类 11 ماه پیش
sortBySeries.js e538decb69 药品分类 11 ماه پیش
timeout.js e538decb69 药品分类 11 ماه پیش
times.js e538decb69 药品分类 11 ماه پیش
timesLimit.js e538decb69 药品分类 11 ماه پیش
timesSeries.js e538decb69 药品分类 11 ماه پیش
transform.js e538decb69 药品分类 11 ماه پیش
transformLimit.js e538decb69 药品分类 11 ماه پیش
transformSeries.js e538decb69 药品分类 11 ماه پیش
tryEach.js e538decb69 药品分类 11 ماه پیش
unmemoize.js e538decb69 药品分类 11 ماه پیش
until.js e538decb69 药品分类 11 ماه پیش
waterfall.js e538decb69 药品分类 11 ماه پیش
whilst.js e538decb69 药品分类 11 ماه پیش
wrapSync.js e538decb69 药品分类 11 ماه پیش

README.md

Neo-Async

npm Travis Status Coverage Status download Total Alerts FOSSA

Neo-Async is thought to be used as a drop-in replacement for Async, it almost fully covers its functionality and runs faster.

Benchmark is here!

Bluebird's benchmark is here!

Code Coverage

coverage

Installation

In a browser

<script src="async.min.js"></script>

In an AMD loader

require(['async'], function(async) {});

Promise and async/await

I recommend to use Aigle.

It is optimized for Promise handling and has almost the same functionality as neo-async.

Node.js

standard

$ npm install neo-async
var async = require('neo-async');

replacement

$ npm install neo-async
$ ln -s ./node_modules/neo-async ./node_modules/async
var async = require('async');

Bower

bower install neo-async

Feature

JSDoc

* not in Async

Collections

Control Flow

Utils

Mode

Benchmark

Benchmark: Async vs Neo-Async

How to check

$ node perf

Environment

  • Darwin 17.3.0 x64
  • Node.js v8.9.4
  • async v2.6.0
  • neo-async v2.5.0
  • benchmark v2.1.4

Result

The value is the ratio (Neo-Async/Async) of the average speed.

Collections

function benchmark
each/forEach 2.43
eachSeries/forEachSeries 1.75
eachLimit/forEachLimit 1.68
eachOf 3.29
eachOfSeries 1.50
eachOfLimit 1.59
map 3.95
mapSeries 1.81
mapLimit 1.27
mapValues 2.73
mapValuesSeries 1.59
mapValuesLimit 1.23
filter 3.00
filterSeries 1.74
filterLimit 1.17
reject 4.59
rejectSeries 2.31
rejectLimit 1.58
detect 4.30
detectSeries 1.86
detectLimit 1.32
reduce 1.82
transform 2.46
sortBy 4.08
some 2.19
someSeries 1.83
someLimit 1.32
every 2.09
everySeries 1.84
everyLimit 1.35
concat 3.79
concatSeries 4.45

Control Flow

funciton benchmark
parallel 2.93
series 1.96
waterfall 1.29
whilst 1.00
doWhilst 1.12
until 1.12
doUntil 1.12
during 1.18
doDuring 2.42
times 4.25
auto 1.97

License

FOSSA Status