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

Function fireInterval

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

Source from the content-addressed store, hash-verified

5769 return ms === Infinity ? undefined : ms
5770 }
5771 const fireInterval = (entry: Entry): void => {
5772 // Paused: the due time stays, and the edge pass picks it up.
5773 if (paused() || entry.watchers.size === 0) return
5774 if (entry.fetch !== undefined) {
5775 // During a list's append it is owed. During a walk it is dropped, as during any fetch.
5776 if (entry.fetch.append) entry.owed ??= "interval"
5777 return
5778 }
5779 const build = survivingBuild(entry)
5780 if (build !== undefined) ensureFetch(entry, "interval", build)
5781 }
5782 const armInterval = (entry: Entry): void => {
5783 if (entry.intervalCancel !== undefined) entry.intervalCancel()
5784 entry.intervalCancel = undefined

Callers 1

armIntervalFunction · 0.85

Calls 3

pausedFunction · 0.85
survivingBuildFunction · 0.85
ensureFetchFunction · 0.85

Tested by

no test coverage detected