MCPcopy Index your code
hub / github.com/python/cpython / stop

Method stop

Lib/test/test_logging.py:936–945  ·  view source on GitHub ↗

Stop the thread by closing the server instance. Wait for the server thread to terminate.

(self)

Source from the content-addressed store, hash-verified

934 asyncore.loop(poll_interval, map=self._map, count=1)
935
936 def stop(self):
937 """
938 Stop the thread by closing the server instance.
939 Wait for the server thread to terminate.
940 """
941 self._quit = True
942 threading_helper.join_thread(self._thread)
943 self._thread = None
944 self.close()
945 asyncore.close_all(map=self._map, ignore_all=True)
946
947
948class ControlMixin(object):

Callers 1

test_basicMethod · 0.95

Calls 2

join_threadMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected