Thanks for the vision of async/await in transpiler.
However we need to confirm that how JavaScript engines implement async/await today, since V8 has native support for that already. Not sure if it has its own solution(possibly like a transpiler though).
My purpose was to figure out a way I can use Koa with ClojureScript. If possible, I want to try:
(.use app
(async-fn []
(await (get-whatever))
(println "done")))
Or maybe we have to pick modules from Koa ecosystem by ourselves and create a new library calling it koa-cljs
or something.
Somehow scripting Koa is really simple in js/CoffeeScript:
Koa = require 'koa'
app = new Koa
app.use (ctx) ->
ctx.body = 'Hello World'
await return
app.listen 3000