(entry: Entry)
| 5535 | } |
| 5536 | /** The build the cache uses when it asks itself: the earliest live watcher's, then a waiter's. */ |
| 5537 | const survivingBuild = (entry: Entry): Build | undefined => { |
| 5538 | for (const watcher of entry.watchers) { |
| 5539 | if (!watcher.build.closed) return watcher.build |
| 5540 | } |
| 5541 | for (const waiter of entry.waiters) { |
| 5542 | if (!waiter.build.closed) return waiter.build |
| 5543 | } |
| 5544 | for (const waiter of entry.moreWaiters) { |
| 5545 | if (!waiter.build.closed) return waiter.build |
| 5546 | } |
| 5547 | return undefined |
| 5548 | } |
| 5549 | |
| 5550 | // -- state ------------------------------------------------------------------ |
| 5551 | const isStale = (entry: Entry): boolean => |
no outgoing calls
no test coverage detected