Ask HN: Is it possible to write a JavaScript runtime with "await by default"?
So that this code:
```
let a = await aFuncThatReturnPromise();
console.log(a)
```
becomes the following and does the same thing: ``` let a = aFuncThatReturnPromise(); console.log(a) ```
For sometimes I do not want wait, use: ``` let a = nowait aFuncThatReturnPromise(); ```
6 comments
[ 3.2 ms ] story [ 24.0 ms ] threadConsole.log(a) will always run and finish before your async function finishes in the example that you want.
https://www.npmjs.com/package/fibers