(id: string)
| 14 | } |
| 15 | |
| 16 | removeID(id: string) { |
| 17 | const currentCount = this.watchedIDs.get(id); |
| 18 | if (!currentCount) { |
| 19 | return; |
| 20 | } |
| 21 | const nextCount = currentCount - 1; |
| 22 | this.watchedIDs.set(id, nextCount); |
| 23 | if (nextCount === 0) { |
| 24 | this.pendingRemovals.set(id, Date.now()); |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | getWatchedIDs(): string[] { |
| 29 | const now = Date.now(); |
no test coverage detected