parameters: (self)
docstring: Remove all pending tasks and stop the scheduler.
docstring_summary: Remove all pending tasks and stop the scheduler.
docstring_tokens: Remove all pending tasks and stop the scheduler .
function: def stop(self):
          """Remove all pending tasks and stop the scheduler."""
          self.running = False
          self._clearschedqueue()
function_tokens: def stop ( self ) : self . running = False self . _clearschedqueue ( )