(self)
| 752 | self._protocol.pause_reading() |
| 753 | |
| 754 | async def read(self) -> _T: |
| 755 | if not self._buffer and not self._eof: |
| 756 | assert not self._waiter |
| 757 | self._waiter = self._loop.create_future() |
| 758 | try: |
| 759 | await self._waiter |
| 760 | except (asyncio.CancelledError, asyncio.TimeoutError): |
| 761 | self._waiter = None |
| 762 | raise |
| 763 | if self._buffer: |
| 764 | data, size = self._buffer.popleft() |
| 765 | self._size -= size |
| 766 | if self._size < self._limit and self._protocol._reading_paused: |
| 767 | self._protocol.resume_reading() |
| 768 | return data |
| 769 | if self._exception is not None: |
| 770 | raise self._exception |
| 771 | raise EofStream |
nothing calls this directly
no test coverage detected