0.1.2 • Published 11 years ago

dida v0.1.2

Weekly downloads
31
License
-
Repository
github
Last release
11 years ago

Build Status

About

interval is a setInterval interface for async method.

Install

$ npm install dida

Usage

var _me = require('dida').create(function (sql) {
  /**
   * @ suppose an async function as _db.query
   */
  _db.query(sql, function (e, res) {
    _me.next();
  });
}, {'interval' : 100});
_me.run('SELECT SLEEP(1)');

License

MIT

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago

0.0.1

11 years ago