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

Method stop

Lib/pydoc.py:2467–2475  ·  view source on GitHub ↗

Stop the server and this thread nicely

(self)

Source from the content-addressed store, hash-verified

2465 self.url = 'http://%s:%d/' % (self.host, self.port)
2466
2467 def stop(self):
2468 """Stop the server and this thread nicely"""
2469 self.docserver.quit = True
2470 self.join()
2471 # explicitly break a reference cycle: DocServer.callback
2472 # has indirectly a reference to ServerThread.
2473 self.docserver = None
2474 self.serving = False
2475 self.url = None
2476
2477 thread = ServerThread(urlhandler, hostname, port)
2478 thread.start()

Callers 1

browseFunction · 0.45

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected