Stop capturing and reset capturing streams.
(self)
| 687 | self._in_suspended = False |
| 688 | |
| 689 | def stop_capturing(self) -> None: |
| 690 | """Stop capturing and reset capturing streams.""" |
| 691 | if self._state == "stopped": |
| 692 | raise ValueError("was already stopped") |
| 693 | self._state = "stopped" |
| 694 | if self.out: |
| 695 | self.out.done() |
| 696 | if self.err: |
| 697 | self.err.done() |
| 698 | if self.in_: |
| 699 | self.in_.done() |
| 700 | |
| 701 | def is_started(self) -> bool: |
| 702 | """Whether actively capturing -- not suspended or stopped.""" |