Comment Comment by ulisesrmzroche Generators are the best, though I'm starting to worry I'm using them too much.edit: I'm using koa, so co is working in the background here. Should have said that earlier, my bad.var save = function*(){ try { yield db.insertUser(); } catch (e) { throw e; } } parent ulisesrmzroche 12 years ago
edit: I'm using koa, so co is working in the background here. Should have said that earlier, my bad.
var save = function*(){ try { yield db.insertUser(); } catch (e) { throw e; } }