The result will automatically be await-ed.
Please don't do this, it is more confusing to omit the await keyword. The result will automatically be await-ed.
Please don't do this, it is more confusing to omit the await keyword.For example, take this code:
```
let eventOccurred = false;
// Some async logic is invoked and an event listener is launched which may change the eventOccurred variable.
if (eventOccurred) { ... }
await foo();
if (eventOccurred) { ... }
```
This logic makes sense as it's possible that the eventOccurred variable has changed from one line to the next. On the other hand, it makes no sense if foo is a regular synchronous function and you remove the await keyword - Any developer reading this will think it is a bug and will delete the second if block. The await gives you a hint that the state of variables in the current scope may have changed by the time the next line is reached.
If we await by default, we won't be able to easily distinguish functions which allow concurrent scope state mutations from those which don't.