jmar777/suspend — pull request #25 by skyblue (2014-12-26 03:55:26+00:00)
Title: Just a fake, may have another better way

this.sleep = function(ms, cb){
setTimeout(cb, ms)
}
suspend.run(function*(resume) {
yield this.sleep(1000, resume())
}, function(err, ret) {
return next(err, ret)
}, this)