MCPcopy Create free account
hub / github.com/JavaCS3/xterm-player / _setState

Method _setState

src/Timer.ts:174–179  ·  view source on GitHub ↗
(state: ITimerState)

Source from the content-addressed store, hash-verified

172 }
173
174 private _setState(state: ITimerState): void {
175 if (this._state !== state) {
176 this._state = state
177 this._onStateChangeCb(this._state)
178 }
179 }
180
181 public get state(): ITimerState { return this._state }
182 public get progress(): number { return this.time / this._duration }

Callers 3

startMethod · 0.95
pauseMethod · 0.95
stopMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected