Is there a way to tell if in a JavaScript method if you are inside of an async call?
For example, if you are calling a method that calls other methods and you forget to use await is there anything that will tell you if you forgot to use the await keyword? I don’t see anything in VSCode that indicates this.
It’s hard to do that in a JavaScript IDE since the return value of an async function is a Promise, and it’s perfectly valid to not await a Promise (essentially discard the value or save the Promise).