Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 449 Bytes

Readme.md

File metadata and controls

34 lines (22 loc) · 449 Bytes

async-series

Execute a list of asyncronous functions one after another

Super tiny!

Installation

Install with component(1):

$ component install jb55/async-series

API

function a(callback) {
  callback(null, 1);
}

function b(callback) {
  setTimeout(function() {
    callback(null, 2);
  }, 5);
}

series([a, b], function (err, results) {
  // results is [1,2]
});

License

MIT