<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def stop(self):
 """Stop running scheduled function. """

        self._running = False
        if self._self_thread is not None:
            self._self_thread.cancel()
            self._self_thread = None