Join the current process worker before it terminates. Parameters ---------- timeout: Optional[number] Timeout value, block at most timeout seconds if it is a positive number.
(self, timeout=None)
| 192 | self._writer = os.fdopen(main_write, "wb") |
| 193 | |
| 194 | def join(self, timeout=None): |
| 195 | """Join the current process worker before it terminates. |
| 196 | |
| 197 | Parameters |
| 198 | ---------- |
| 199 | timeout: Optional[number] |
| 200 | Timeout value, block at most timeout seconds if it |
| 201 | is a positive number. |
| 202 | """ |
| 203 | if self._proc: |
| 204 | try: |
| 205 | self._proc.wait(timeout) |
| 206 | except subprocess.TimeoutExpired: |
| 207 | pass |
| 208 | |
| 209 | def is_alive(self): |
| 210 | """Check if the process is alive""" |