()
| 23 | } |
| 24 | |
| 25 | async start(): Promise<void> { |
| 26 | if (this.ready) return |
| 27 | if (this.startPromise) return this.startPromise |
| 28 | this.startPromise = this._start() |
| 29 | try { |
| 30 | await this.startPromise |
| 31 | } finally { |
| 32 | this.startPromise = null |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | private async _start(): Promise<void> { |
| 37 | if (this.process) { |
no test coverage detected