MCPcopy Create free account
hub / github.com/apache/arrow / launch_server

Function launch_server

python/scripts/run_emscripten_tests.py:137–144  ·  view source on GitHub ↗
(dist_dir)

Source from the content-addressed store, hash-verified

135
136@contextlib.contextmanager
137def launch_server(dist_dir):
138 q = queue.Queue()
139 p = threading.Thread(target=run_server_thread, args=[dist_dir, q], daemon=True)
140 p.start()
141 address = q.get(timeout=50)
142 time.sleep(0.1) # wait to make sure server is started
143 yield address
144 p.terminate()
145
146
147class NodeDriver:

Callers 1

Calls 2

getMethod · 0.95
startMethod · 0.45

Tested by

no test coverage detected