Interrupt the current sleep operation.
If the thread is currently sleeping, it will be woken immediately, instead of waiting the full duration of the timeout.
Wait for some amount of time, or until notified.
Parameters: timeout (float) – Time to wait, in seconds.
Stop the thread and wait for it to terminate.
The stop instance variable is set to True and the condition is notified. It is the responsibility of the run method to check the value of stop after each sleep or wait and to return if set.