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

Function cancelIdle

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

Source from the content-addressed store, hash-verified

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

Callers 6

removeEntryFunction · 0.85
startIdleFunction · 0.85
startFetchFunction · 0.85
watchFunction · 0.85
getStoredFunction · 0.85
beginRunFunction · 0.85

Calls 1

cancelMethod · 0.45

Tested by

no test coverage detected