Transition to Running; valid from Created or Stopped.
()
| 52 | |
| 53 | /** Transition to Running; valid from Created or Stopped. */ |
| 54 | toRunning(): void { |
| 55 | if (this.state0 === "Created" || this.state0 === "Stopped") { |
| 56 | this.state0 = "Running"; |
| 57 | return; |
| 58 | } |
| 59 | invalidState(`cannot transition ${this.state0} -> Running`); |
| 60 | } |
| 61 | |
| 62 | /** Transition to Stopped; valid only from Running. */ |
| 63 | toStopped(): void { |
no test coverage detected