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(); ```
1–7 of 7 posts
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(); ```
Console.log(a) will always run and finish before your async function finishes in the example that you want.
No, that's not possible. Console.log(a) will always run and finish before your async function finishes in the example that you want.
No, that's not possible. Console.log(a) will always run and finish before your async function finishes in the example that you want.
I know it. But I'm asking about possibility of creating a new runtime.