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

Method slow_stream

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

Source from the content-addressed store, hash-verified

399
400 @staticmethod
401 def slow_stream():
402 data1 = [pa.array([-10, -5, 0, 5, 10], type=pa.int32())]
403 yield pa.Table.from_arrays(data1, names=['a'])
404 # The second message should never get sent; the client should
405 # cancel before we send this
406 time.sleep(10)
407 yield pa.Table.from_arrays(data1, names=['a'])
408
409
410class ErrorFlightServer(FlightServerBase):

Callers 1

do_getMethod · 0.95

Calls 1

arrayMethod · 0.45

Tested by

no test coverage detected