Open skyblue opened 9 years ago
eg:
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)
eg: