(self, timeout=None)
| 174 | self._release_pty_master() |
| 175 | |
| 176 | async def read(self, timeout=None): |
| 177 | # Return any decoded text the child produced, or None on timeout |
| 178 | try: |
| 179 | return await asyncio.wait_for(self._buf.get(), timeout) |
| 180 | except asyncio.TimeoutError: |
| 181 | return None |
| 182 | |
| 183 | # backward-compat alias: |
| 184 | readline = read |
no test coverage detected