def pause(self): self._assure_cancelled() unschedule(self.action)
def cancel(self): unschedule(self.action) self.is_cancelled = True