I am trying to use the new async features and I hope solving my problem will help others in the future. This is my code which is working:
async function as
The quick one-liner, inline way
await new Promise(resolve => setTimeout(resolve, 1000));