MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / releaseBuildSlot

Function releaseBuildSlot

apps/cloud/src/mcp/session-build-semaphore.ts:167–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

165 * rather than making it race a fresh `acquireBuildSlot` caller.
166 */
167export const releaseBuildSlot = (): void => {
168 activeBuilds = Math.max(0, activeBuilds - 1);
169 const next = waitQueue.shift();
170 if (next) next.grant();
171};
172
173/** Test-only: isolate-scoped module state outlives a single test case. */
174export const resetBuildSlotsForTest = (): void => {

Callers 2

acquireBuildSlotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected