What would then be the right way to sleep? I&#x27;ve always wanted to do something like &#x27;sleep until event &lt;X&gt; and do absolutely nothing till them&#x27;, but end up using the delay every time.