(clientId: number, batch: Batch)
| 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) => |
no test coverage detected