* @inheritdoc
()
| 182 | * @inheritdoc |
| 183 | */ |
| 184 | public async terminate(): Promise<void> { |
| 185 | if (this.program) { |
| 186 | await this.program.stop(); |
| 187 | } else { |
| 188 | this.onProgramTerminated({ code: 0, killed: true }); |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | /** |
| 193 | * Restarts the ongoing program. |