part-async-series

## Installation

npm install part-async-series
2 downloads in the last day
21 downloads in the last week
74 downloads in the last month

Async Series

Installation

node.js:

npm install part-async-series

browser:

component install part/async-series

Example

var series = require('part-async-series');

var calls = [];

var a = function(context, next){
  setTimeout(function(){
    calls.push('a.' + context);
    next();
  }, 1);
}
var b = function(context, next){
  setTimeout(function(){
    calls.push('b.' + context);
    next();
  }, 1);
}

series([a, b], 'ctx', function(){
  assert('a.ctx' === calls[0]);
  assert('b.ctx' === calls[1]);
  done();
});

Licence

MIT

npm loves you