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

Function idleTtl

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

Source from the content-addressed store, hash-verified

5670 (entry.fetch === undefined || entry.def.live !== undefined) &&
5671 !hasLive(entry)
5672 const idleTtl = (entry: Entry): number => entry.def.idleMs ?? defaultIdleMs
5673 // Built like `RcMap`'s: an `expiresAt` a reset moves, and a sleep that goes round again.
5674 const startIdle = (entry: Entry): void => {
5675 cancelIdle(entry)

Callers 2

startIdleFunction · 0.85
resetIdleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected