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

Function launch_server

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

Source from the content-addressed store, hash-verified

124
125@contextlib.contextmanager
126def launch_server(dist_dir):
127 q = queue.Queue()
128 p = threading.Thread(target=run_server_thread, args=[dist_dir, q], daemon=True)
129 p.start()
130 address = q.get(timeout=50)
131 time.sleep(0.1) # wait to make sure server is started
132 yield address
133 p.terminate()
134
135
136class NodeDriver:

Callers 1

Calls 2

getMethod · 0.95
startMethod · 0.45

Tested by

no test coverage detected