Re:Syncify.js – Eliminates the need for callbacks in the bro...
by adrusi on Sunday May 10, 2015 @11:21AM
(#9520155)
It seems incredibly fragile, better to just use some kind of compile-to-js language. IcedCoffeeScript, Clojurescript, Gopherscript and more all make it possible to avoid callbacks in a cleaner way, with fewer restrictions and probably better performance. Babel has experimental support for es7 async functions, if you really want to write javascript code.
[ Parent
| on HN ]
Re:Syncify.js – Eliminates the need for callbacks in the bro...
by voxtex on Sunday May 10, 2015 @11:28AM
(#9520172)
I've found using promises with generators yields code very similar to async/await, without relying on experimental features.
or
https://github.com/petkaantonov/bluebird/blob/master/API.md#...
Re:Syncify.js – Eliminates the need for callbacks in the bro...
by randall on Sunday May 10, 2015 @12:40PM
(#9520418)
Also there's this: https://github.com/yortus/asyncawait