(self)
| 163 | |
| 164 | # Read a line from the stream cache. |
| 165 | async def readline(self): |
| 166 | while True: |
| 167 | try: |
| 168 | return self.lines.pop(0) |
| 169 | except IndexError: |
| 170 | if self.ended: |
| 171 | return None |
| 172 | else: |
| 173 | await asyncio.sleep(0.1) |
| 174 | |
| 175 | # Read all lines from the stream cache. |
| 176 | async def readlines(self): |
no outgoing calls
no test coverage detected