traverse-chain

A simple asynchronous tool

npm install traverse-chain
8 downloads in the last day
537 downloads in the last week
2 377 downloads in the last month

traverse-chain

A simple asynchronous tool

Installation

$ npm install traverse-chain

Example


var Chain = require('traverse-chain');
var chain = new Chain();

chain.add(
  function() {
    setTimeout(function() {
      chain.next();
    }, 2000);
  },
  functin() {
    setTimeout(function() {
      chain.next();
    }, 1000); 
  }
)

chain.traverse(function() {
  // done
});

License

MIT

npm loves you