MCPcopy Create free account
hub / github.com/Comfy-Org/litegraph.js / stop

Method stop

src/LGraph.ts:427–442  ·  view source on GitHub ↗

* @deprecated Will be removed in 0.9 * Stops the execution loop of the graph

()

Source from the content-addressed store, hash-verified

425 * Stops the execution loop of the graph
426 */
427 stop(): void {
428 if (this.status == LGraph.STATUS_STOPPED) return
429
430 this.status = LGraph.STATUS_STOPPED
431
432 this.onStopEvent?.()
433
434 if (this.execution_timer_id != null) {
435 if (this.execution_timer_id != -1) {
436 clearInterval(this.execution_timer_id)
437 }
438 this.execution_timer_id = null
439 }
440
441 this.sendEventToAllNodes("onStop")
442 }
443
444 /**
445 * Run N steps (cycles) of the graph

Callers 2

clearMethod · 0.95
runStepMethod · 0.95

Calls 1

sendEventToAllNodesMethod · 0.95

Tested by

no test coverage detected