You only add '*' and 'yield' (or 'await' and 'async') and write like any synchronous code once you wrap it under co module and such.
async/await is for ES7. TypeScript already has an implemention though.
You only add '*' and 'yield' (or 'await' and 'async') and write like any synchronous code once you wrap it under co module and such.
async/await is for ES7. TypeScript already has an implemention though.