Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

traverse-chain

yuanchuan3.5mMIT0.1.0

A simple asynchronous tool

async, chain, queue

readme

traverse-chain

A simple asynchronous tool

Installation

$ npm install traverse-chain

Example

`javascript

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