(self)
| 348 | self._clear_callbacks() |
| 349 | |
| 350 | def close(self) -> None: |
| 351 | if self.stream is not None: |
| 352 | self.stream.close() |
| 353 | self._clear_callbacks() |
| 354 | if not self._finish_future.done(): |
| 355 | future_set_result_unless_cancelled(self._finish_future, None) |
| 356 | |
| 357 | def detach(self) -> iostream.IOStream: |
| 358 | """Take control of the underlying stream. |
no test coverage detected