Hacker News new | ask | show | jobs
by aurareturn 875 days ago
No, that's not possible.

Console.log(a) will always run and finish before your async function finishes in the example that you want.

1 comments

I know it. But I'm asking about possibility of creating a new runtime.
but then console.log(a) is also a promise...you could do this by adding await to all function calls, a kind of parser preprocessor, and then just removing all noawait's