MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / stop

Method stop

tools/python-3.11.9-amd64/Lib/pydoc.py:2515–2523  ·  view source on GitHub ↗

Stop the server and this thread nicely

(self)

Source from the content-addressed store, hash-verified

2513 self.url = 'http://%s:%d/' % (self.host, self.port)
2514
2515 def stop(self):
2516 """Stop the server and this thread nicely"""
2517 self.docserver.quit = True
2518 self.join()
2519 # explicitly break a reference cycle: DocServer.callback
2520 # has indirectly a reference to ServerThread.
2521 self.docserver = None
2522 self.serving = False
2523 self.url = None
2524
2525 thread = ServerThread(urlhandler, hostname, port)
2526 thread.start()

Callers 1

browseFunction · 0.45

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected