MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / end

Method end

src/utils/QueryGuard.ts:74–80  ·  view source on GitHub ↗

* End a query. Returns true if this generation is still current * (meaning the caller should perform cleanup). Returns false if a * newer query has started (stale finally block from a cancelled query).

(generation: number)

Source from the content-addressed store, hash-verified

72 * newer query has started (stale finally block from a cancelled query).
73 */
74 end(generation: number): boolean {
75 if (this._generation !== generation) return false
76 if (this._status !== 'running') return false
77 this._status = 'idle'
78 this._notify()
79 return true
80 }
81
82 /**
83 * Force-end the current query regardless of generation.

Callers 10

finishFunction · 0.45
isPeerAliveFunction · 0.45
finishFunction · 0.45
disconnectPeerFunction · 0.45
execCommandHookFunction · 0.45
finishFunction · 0.45
dataFunction · 0.45
startNodeRelayFunction · 0.45
handleDataFunction · 0.45
openTunnelFunction · 0.45

Calls 1

_notifyMethod · 0.95

Tested by

no test coverage detected