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

Function block_read

python/pyarrow/tests/test_flight.py:1973–1981  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1971 raised_proper_exception = threading.Event()
1972
1973 def block_read():
1974 reader.read_chunk()
1975 read_first_message.set()
1976 stream_canceled.wait(timeout=5)
1977 try:
1978 reader.read_chunk()
1979 except flight.FlightCancelledError:
1980 with result_lock:
1981 raised_proper_exception.set()
1982
1983 thread = threading.Thread(target=block_read, daemon=True)
1984 thread.start()

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected