Skip to content

jb55/async-series

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Super tiny async-series component

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published