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

Function resetIdle

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

Source from the content-addressed store, hash-verified

5702 if (entry.idle === undefined) startIdle(entry)
5703 }
5704 const resetIdle = (entry: Entry): void => {
5705 if (entry.idle !== undefined) entry.idle.expiresAt = now() + idleTtl(entry)
5706 }
5707
5708 // -- interval ---------------------------------------------------------------
5709 const paused = (): boolean => !visibility.get() || !connectivity.get()

Callers 2

getFunction · 0.85
prefetchFunction · 0.85

Calls 2

idleTtlFunction · 0.85
nowFunction · 0.70

Tested by

no test coverage detected