|
|
|
|
|
by ulisesrmzroche
4444 days ago
|
|
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;
}
} |
|
[1] https://github.com/CrabDude/trycatch/blob/master/lib/trycatc...