(id: string)
| 284 | * disposed id. |
| 285 | */ |
| 286 | const endRequest = (id: string): void => { |
| 287 | const remaining = (activeRequests.get(id) ?? 1) - 1; |
| 288 | if (remaining > 0) activeRequests.set(id, remaining); |
| 289 | else activeRequests.delete(id); |
| 290 | touch(id); |
| 291 | }; |
| 292 | |
| 293 | /** |
| 294 | * Shut down a session's engine. Dropping the reference is not enough: the |