parameters: (self)
docstring: Stop the timer if it hasn't finished yet
docstring_summary: Stop the timer if it hasn't finished yet
docstring_tokens: Stop the timer if it hasn t finished yet
function: def cancel(self):
          """Stop the timer if it hasn't finished yet"""
          self.finished.set()
function_tokens: def cancel ( self ) : self . finished . set ( )