MCPcopy Index your code
hub / github.com/codeaashu/claude-code / forceEnd

Method forceEnd

src/utils/QueryGuard.ts:88–93  ·  view source on GitHub ↗

* Force-end the current query regardless of generation. * Used by onCancel where any running query should be terminated. * Increments generation so stale finally blocks from the cancelled * query's promise rejection will see a mismatch and skip cleanup.

()

Source from the content-addressed store, hash-verified

86 * query's promise rejection will see a mismatch and skip cleanup.
87 */
88 forceEnd(): void {
89 if (this._status === 'idle') return
90 this._status = 'idle'
91 ++this._generation
92 this._notify()
93 }
94
95 /**
96 * Is the guard active (dispatching or running)?

Callers 1

onCancelFunction · 0.80

Calls 1

_notifyMethod · 0.95

Tested by

no test coverage detected