MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / decrementActivity

Function decrementActivity

src/daemon/activity-registry.ts:7–14  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

5}
6
7function decrementActivity(key: string): void {
8 const current = activityCounts.get(key) ?? 0;
9 if (current <= 1) {
10 activityCounts.delete(key);
11 return;
12 }
13 activityCounts.set(key, current - 1);
14}
15
16/**
17 * Acquire a long-running daemon activity lease.

Callers 1

acquireDaemonActivityFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected