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

Method reserve

source code/utils/QueryGuard.ts:40–45  ·  view source on GitHub ↗

* Reserve the guard for queue processing. Transitions idle → dispatching. * Returns false if not idle (another query or dispatch in progress).

()

Source from the content-addressed store, hash-verified

38 * Returns false if not idle (another query or dispatch in progress).
39 */
40 reserve(): boolean {
41 if (this._status !== 'idle') return false
42 this._status = 'dispatching'
43 this._notify()
44 return true
45 }
46
47 /**
48 * Cancel a reservation when processQueueIfReady had nothing to process.

Callers 1

executeUserInputFunction · 0.80

Calls 1

_notifyMethod · 0.95

Tested by

no test coverage detected