tatianamac 6d5445ecc5 update
2019-11-26 14:50:43 -08:00
..
2019-11-26 14:50:43 -08:00
2019-11-26 14:50:43 -08:00
2019-11-26 14:50:43 -08:00

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