(self)
| 341 | self._clear_callbacks() |
| 342 | |
| 343 | def close(self) -> None: |
| 344 | if self.stream is not None: |
| 345 | self.stream.close() |
| 346 | self._clear_callbacks() |
| 347 | if not self._finish_future.done(): |
| 348 | future_set_result_unless_cancelled(self._finish_future, None) |
| 349 | |
| 350 | def detach(self) -> iostream.IOStream: |
| 351 | """Take control of the underlying stream. |
no test coverage detected