(entry: Entry)
| 5658 | |
| 5659 | // -- idle timer ------------------------------------------------------------- |
| 5660 | const cancelIdle = (entry: Entry): void => { |
| 5661 | if (entry.idle !== undefined) { |
| 5662 | entry.idle.cancel() |
| 5663 | entry.idle = undefined |
| 5664 | } |
| 5665 | } |
| 5666 | // A live patch blocks collection. A patch held after success doesn't. A stream still opening doesn't either. |
| 5667 | const idleEligible = (entry: Entry): boolean => |
| 5668 | !entry.removed && entry.watchers.size === 0 && entry.waiters.size === 0 && |
no test coverage detected