MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / toRunning

Method toRunning

packages/core/src/app/stateMachine.ts:54–60  ·  view source on GitHub ↗

Transition to Running; valid from Created or Stopped.

()

Source from the content-addressed store, hash-verified

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 {

Callers 2

startFunction · 0.80

Calls 1

invalidStateFunction · 0.85

Tested by

no test coverage detected