MCPcopy Create free account
hub / github.com/FlashpointProject/launcher / setState

Method setState

src/back/ManagedChildProcess.ts:203–211  ·  view source on GitHub ↗

* Set the state of the process. * * @param state State to set.

(state: ProcessState)

Source from the content-addressed store, hash-verified

201 * @param state State to set.
202 */
203 private setState(state: ProcessState): void {
204 if (this.state !== state) {
205 const oldState = this.state;
206 this.state = state;
207 this.emit('change', state);
208 onServiceChange.fire({ process: this, oldState, newState: state })
209 .catch((err) => log.warn('Launcher', `Error during onServiceChange callback/n:ERROR: ${err}`));
210 }
211 }
212
213 /**
214 * Add an entry in the log.

Callers 15

spawnMethod · 0.95
killMethod · 0.95
restartMethod · 0.95
componentDidUpdateMethod · 0.80
renderMethod · 0.80
componentDidMountMethod · 0.80
componentDidUpdateMethod · 0.80
renderMethod · 0.80
checkImageExistanceMethod · 0.80
RightBrowseSidebarClass · 0.80
ImagePreviewClass · 0.80
ResizableSidebarClass · 0.80

Calls 2

emitMethod · 0.95
fireMethod · 0.65

Tested by

no test coverage detected