MCPcopy Index your code
hub / github.com/ipython/ipython / _stop_thread

Method _stop_thread

IPython/core/history.py:736–741  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

734
735 @classmethod
736 def _stop_thread(cls) -> None:
737 # Used before forking so the thread isn't running at fork
738 for inst in cls._instances:
739 if inst.save_thread is not None:
740 inst.save_thread.stop()
741 inst.save_thread = None
742
743 def _restart_thread_if_stopped(self) -> None:
744 # Start the thread again after it was stopped for forking

Callers

nothing calls this directly

Calls 1

stopMethod · 0.80

Tested by

no test coverage detected