()
| 2603 | # Set a concurrent reader - ensure this doesn't block the |
| 2604 | # writer side from calling Close() |
| 2605 | def _reader(): |
| 2606 | try: |
| 2607 | while True: |
| 2608 | reader.read() |
| 2609 | except flight.FlightError: |
| 2610 | return |
| 2611 | |
| 2612 | thread = threading.Thread(target=_reader, daemon=True) |
| 2613 | thread.start() |