MCPcopy Index your code
hub / github.com/prometheus/client_python / ServingThread

Class ServingThread

tests/test_graphite_bridge.py:25–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23 server = SocketServer.TCPServer(('', 0), TCPHandler)
24
25 class ServingThread(threading.Thread):
26 def run(self):
27 server.handle_request()
28 server.socket.close()
29
30 self.t = ServingThread()
31 self.t.start()

Callers 1

setUpMethod · 0.85

Calls

no outgoing calls

Tested by 1

setUpMethod · 0.68