def remove_all_timers(self):
        """Remove all waiting timers and terminate any blocking threads."""
        with self.lock:
            if self.rtimer is not None:
                self.rtimer.cancel()

            self.timers = {}
            self.heap = []
            self.rtimer = None
            self.expiring = False
def remove_all_timers ( self ) : with self . lock : if self . rtimer is not None : self . rtimer . cancel ( ) self . timers = { } self . heap = [ ] self . rtimer = None self . expiring = False
Remove all waiting timers and terminate any blocking threads.