学习?学个屁 41d5dcf69c 赛事基础接口 il y a 1 semaine
..
LICENSE 41d5dcf69c 赛事基础接口 il y a 1 semaine
README.md 41d5dcf69c 赛事基础接口 il y a 1 semaine
all.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
allLimit.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
allSeries.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
angelFall.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
any.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
anyLimit.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
anySeries.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
apply.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
applyEach.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
applyEachSeries.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
async.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
async.min.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
asyncify.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
auto.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
autoInject.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
cargo.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
compose.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
concat.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
concatLimit.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
concatSeries.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
constant.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
createLogger.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
detect.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
detectLimit.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
detectSeries.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
dir.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
doDuring.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
doUntil.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
doWhilst.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
during.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
each.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
eachLimit.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
eachOf.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
eachOfLimit.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
eachOfSeries.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
eachSeries.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
ensureAsync.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
every.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
everyLimit.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
everySeries.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
fast.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
filter.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
filterLimit.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
filterSeries.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
find.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
findLimit.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
findSeries.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
foldl.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
foldr.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
forEach.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
forEachLimit.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
forEachOf.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
forEachOfLimit.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
forEachOfSeries.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
forEachSeries.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
forever.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
groupBy.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
groupByLimit.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
groupBySeries.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
inject.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
iterator.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
log.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
map.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
mapLimit.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
mapSeries.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
mapValues.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
mapValuesLimit.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
mapValuesSeries.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
memoize.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
nextTick.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
omit.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
omitLimit.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
omitSeries.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
package.json 41d5dcf69c 赛事基础接口 il y a 1 semaine
parallel.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
parallelLimit.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
pick.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
pickLimit.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
pickSeries.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
priorityQueue.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
queue.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
race.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
reduce.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
reduceRight.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
reflect.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
reflectAll.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
reject.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
rejectLimit.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
rejectSeries.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
retry.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
retryable.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
safe.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
select.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
selectLimit.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
selectSeries.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
seq.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
series.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
setImmediate.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
some.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
someLimit.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
someSeries.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
sortBy.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
sortByLimit.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
sortBySeries.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
timeout.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
times.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
timesLimit.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
timesSeries.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
transform.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
transformLimit.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
transformSeries.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
tryEach.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
unmemoize.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
until.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
waterfall.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
whilst.js 41d5dcf69c 赛事基础接口 il y a 1 semaine
wrapSync.js 41d5dcf69c 赛事基础接口 il y a 1 semaine

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