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

Function launch_server

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 2

getMethod · 0.95
startMethod · 0.45

Tested by

no test coverage detected