MCPcopy Index your code
hub / github.com/RustPython/RustPython / stop

Method stop

Lib/test/test_logging.py:974–983  ·  view source on GitHub ↗

Tell the server thread to stop, and wait for it to do so.

(self)

Source from the content-addressed store, hash-verified

972 super(ControlMixin, self).serve_forever(poll_interval)
973
974 def stop(self):
975 """
976 Tell the server thread to stop, and wait for it to do so.
977 """
978 self.shutdown()
979 if self._thread is not None:
980 threading_helper.join_thread(self._thread)
981 self._thread = None
982 self.server_close()
983 self.ready.clear()
984
985class TestHTTPServer(ControlMixin, HTTPServer):
986 """

Callers 7

tearDownMethod · 0.45
test_noserverMethod · 0.45
tearDownMethod · 0.45
tearDownMethod · 0.45
test_outputMethod · 0.45
run_coroutineMethod · 0.45

Calls 4

join_threadMethod · 0.80
shutdownMethod · 0.45
server_closeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected