(self, context, descriptor, reader, writer)
| 2429 | return flight.GeneratorStream(schema, itertools.repeat(rb)) |
| 2430 | |
| 2431 | def do_exchange(self, context, descriptor, reader, writer): |
| 2432 | schema = pa.schema([]) |
| 2433 | rb = pa.RecordBatch.from_arrays([], schema=schema) |
| 2434 | writer.begin(schema) |
| 2435 | while not context.is_cancelled(): |
| 2436 | writer.write_batch(rb) |
| 2437 | time.sleep(0.5) |
| 2438 | |
| 2439 | |
| 2440 | @pytest.mark.threading |
nothing calls this directly
no test coverage detected