* @deprecated Will be removed in 0.9 * Stops the execution loop of the graph
()
| 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 |
no test coverage detected