MCPcopy
hub / github.com/bugy/script-server / wait_and_read

Function wait_and_read

src/tests/test_utils.py:517–522  ·  view source on GitHub ↗
(process_wrapper)

Source from the content-addressed store, hash-verified

515
516
517def wait_and_read(process_wrapper):
518 thread = threading.Thread(target=process_wrapper.wait_finish, daemon=True)
519 thread.start()
520 thread.join(timeout=0.1)
521
522 return ''.join(read_until_closed(process_wrapper.output_stream))
523
524
525def wrap_values(parameters, values):

Callers

nothing calls this directly

Calls 2

read_until_closedFunction · 0.90
startMethod · 0.45

Tested by

no test coverage detected