(self, timeout: float = 5)
| 36 | self.process = get_subprocess(config, self.target, sockets) |
| 37 | |
| 38 | def ping(self, timeout: float = 5) -> bool: |
| 39 | self.parent_conn.send(b"ping") |
| 40 | if self.parent_conn.poll(timeout): |
| 41 | self.parent_conn.recv() |
| 42 | return True |
| 43 | return False |
| 44 | |
| 45 | def pong(self) -> None: |
| 46 | self.child_conn.recv() |