Stop capturing and reset capturing streams.
(self)
| 577 | self._in_suspended = False |
| 578 | |
| 579 | def stop_capturing(self) -> None: |
| 580 | """Stop capturing and reset capturing streams.""" |
| 581 | if self._state == "stopped": |
| 582 | raise ValueError("was already stopped") |
| 583 | self._state = "stopped" |
| 584 | if self.out: |
| 585 | self.out.done() |
| 586 | if self.err: |
| 587 | self.err.done() |
| 588 | if self.in_: |
| 589 | self.in_.done() |
| 590 | |
| 591 | def is_started(self) -> bool: |
| 592 | """Whether actively capturing -- not suspended or stopped.""" |