Close the reader (will exit the iterator).
(self)
| 21 | self._exit_event = Event() |
| 22 | |
| 23 | def close(self) -> None: |
| 24 | """Close the reader (will exit the iterator).""" |
| 25 | self._exit_event.set() |
| 26 | |
| 27 | def __iter__(self) -> Iterator[bytes]: |
| 28 | """Read input, yield bytes.""" |