MCPcopy Create free account
hub / github.com/Effect-TS/effect / closeBatch

Function closeBatch

packages/effect/src/rpc/RpcClient.ts:1062–1066  ·  view source on GitHub ↗
(clientId: number, batch: Batch)

Source from the content-addressed store, hash-verified

1060 }
1061 const batches = new Map<number, Batch>()
1062 const closeBatch = (clientId: number, batch: Batch) => {
1063 if (batches.get(clientId) === batch) {
1064 batches.delete(clientId)
1065 }
1066 }
1067 // Runs in the client scope rather than in a caller, so interrupting one
1068 // caller does not cancel the HTTP request for the rest of the batch.
1069 const runBatch = (clientId: number, batch: Batch) =>

Callers 2

runBatchFunction · 0.85
RpcClient.tsFile · 0.85

Calls 2

getMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected