(key: string)
| 5 | } |
| 6 | |
| 7 | function decrementActivity(key: string): void { |
| 8 | const current = activityCounts.get(key) ?? 0; |
| 9 | if (current <= 1) { |
| 10 | activityCounts.delete(key); |
| 11 | return; |
| 12 | } |
| 13 | activityCounts.set(key, current - 1); |
| 14 | } |
| 15 | |
| 16 | /** |
| 17 | * Acquire a long-running daemon activity lease. |
no test coverage detected