* Stops taking spawns, and disconnects once the running commands have * exited. A proxy process that is not ready yet has no commands and is * stopped.
()
| 319 | * stopped. |
| 320 | */ |
| 321 | retire(): void { |
| 322 | this.retired = true |
| 323 | if (!this.ready) return this.stop(new Error("The proxy process was retired before it was ready")) |
| 324 | if (this.commands.size === 0) this.disconnect() |
| 325 | } |
| 326 | |
| 327 | unref(): void { |
| 328 | this.refs-- |
no test coverage detected