(id: string)
| 274 | |
| 275 | /** Claim a session for one in-flight request, so the sweep cannot take it. */ |
| 276 | const beginRequest = (id: string): void => { |
| 277 | activeRequests.set(id, (activeRequests.get(id) ?? 0) + 1); |
| 278 | }; |
| 279 | |
| 280 | /** |
| 281 | * Release the claim and restamp: a call that ran for an hour leaves the |