MCPcopy
hub / github.com/statelyai/xstate / stop

Method stop

packages/core/src/createActor.ts:646–651  ·  view source on GitHub ↗

Stops the Actor and unsubscribe all listeners.

()

Source from the content-addressed store, hash-verified

644
645 /** Stops the Actor and unsubscribe all listeners. */
646 public stop(): this {
647 if (this._parent) {
648 throw new Error('A non-root actor cannot be stopped directly.');
649 }
650 return this._stop();
651 }
652 private _complete(): void {
653 for (const observer of this.observers) {
654 try {

Callers

nothing calls this directly

Calls 1

_stopMethod · 0.95

Tested by

no test coverage detected