title: How can I put the current thread to sleep?
body: <p>There is so much outdated information, it is really hard to find out how to sleep. I'd like something similar to this Java code:</p>
  
  <pre><code>Thread.sleep(4000);
  </code></pre>