0.1.2 • Published 12 years ago
dida v0.1.2
About
interval is a setInterval interface for async method.
Install
$ npm install didaUsage
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
