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; } }

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton