Re:RQ – A small JavaScript library for managing asychronicity
by trevorgerhardt on Tuesday April 14, 2015 @10:51AM
(#9374663)
ES7 async/await functions? https://github.com/jaydson/es7-async
Babel already enables them.
Re:RQ – A small JavaScript library for managing asychronicity
by dereke on Tuesday April 14, 2015 @09:54AM
(#9374213)
pogoscript.org has some nice features to let you use async like it was sync.
fs = require 'fs'
mojo = fs.readFile 'mojo.txt' 'utf-8' ^!
console.log (mojo)
(note that if readFile returned a promise you wouldn't need to use the ^)
I was hoping one day Javascript could support "deep" coroutines, so we can keep on programming "sequentially" as we did before while still using asynchronous mechanisms.
Perhaps there exist languages that compile to Javascript, that offer deep coroutines (?)