code: 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
docs: Remove all waiting timers and terminate any blocking threads.