Returns ``True`` if we are currently writing to the stream.
(self)
| 656 | return self._read_future is not None |
| 657 | |
| 658 | def writing(self) -> bool: |
| 659 | """Returns ``True`` if we are currently writing to the stream.""" |
| 660 | return bool(self._write_buffer) |
| 661 | |
| 662 | def closed(self) -> bool: |
| 663 | """Returns ``True`` if the stream has been closed.""" |