%% Last Updated: - [[2021-02-24]] %% The most common way to induce a delay in a [[Python]] script is to use `sleep()`. However, this is suboptimal because sleeps can't be interrupted, and must always be carried out. An alternative is to use `threading.Event` and `wait()`, with an event set to interrupt the sleep if necessary. ## References - [[Tweets From Will McGugan]]