MCPcopy Create free account
hub / github.com/Effect-TS/effect / survivingBuild

Function survivingBuild

packages/effect/src/ui/Query.ts:5537–5548  ·  view source on GitHub ↗
(entry: Entry)

Source from the content-addressed store, hash-verified

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 =>

Callers 6

fireIntervalFunction · 0.85
replaceFetchFunction · 0.85
invalidateEntryFunction · 0.85
settleRunEntryFunction · 0.85
closeWindowFunction · 0.85
edgePassFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected