js fake await

JavaScript
  await new Promise(resolve => setTimeout(resolve, 3000));
Source

Also in JavaScript: