MCPcopy
hub / github.com/claude-code-best/claude-code / reserve

Method reserve

src/utils/QueryGuard.ts:38–43  ·  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

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

Callers 2

createBaseParamsFunction · 0.95
executeUserInputFunction · 0.80

Calls 1

_notifyMethod · 0.95

Tested by 1

createBaseParamsFunction · 0.76