MCPcopy Index your code
hub / github.com/NobyDa/Script / start

Function start

IPA-Installer/IPA-Installer-Pythonista.py:25–34  ·  view source on GitHub ↗
(port)

Source from the content-addressed store, hash-verified

23 httpd.serve_forever()
24
25def start(port):
26 thread = Thread(target=startServer, args=[port])
27 thread.start()
28
29 startTime = int(time.time())
30 while not httpd:
31 if int(time.time()) > startTime + 60:
32 print("Time out")
33 break
34 return httpd
35
36def stop():
37 if httpd:

Callers 1

mainFunction · 0.85

Calls 1

timeMethod · 0.45

Tested by

no test coverage detected