MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / forceEnd

Method forceEnd

source code/utils/QueryGuard.ts:90–95  ·  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

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

Callers 1

onCancelFunction · 0.80

Calls 1

_notifyMethod · 0.95

Tested by

no test coverage detected