Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

traverse-chain

0.1.0 • Public • Published

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

Keywords

none

install

npm i traverse-chain

Downloadsweekly downloads

173,895

version

0.1.0

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability