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

Method shutdown

tools/python-3.11.9-amd64/Lib/socketserver.py:245–253  ·  view source on GitHub ↗

Stops the serve_forever loop. Blocks until the loop has finished. This must be called while serve_forever() is running in another thread, or it will deadlock.

(self)

Source from the content-addressed store, hash-verified

243 self.__is_shut_down.set()
244
245 def shutdown(self):
246 """Stops the serve_forever loop.
247
248 Blocks until the loop has finished. This must be called while
249 serve_forever() is running in another thread, or it will
250 deadlock.
251 """
252 self.__shutdown_request = True
253 self.__is_shut_down.wait()
254
255 def service_actions(self):
256 """Called by the serve_forever() loop.

Callers 1

shutdown_requestMethod · 0.45

Calls 1

waitMethod · 0.45

Tested by

no test coverage detected