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

Function stopInterval

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

Source from the content-addressed store, hash-verified

5708 // -- interval ---------------------------------------------------------------
5709 const paused = (): boolean => !visibility.get() || !connectivity.get()
5710 const stopInterval = (entry: Entry): void => {
5711 if (entry.intervalCancel !== undefined) {
5712 entry.intervalCancel()
5713 entry.intervalCancel = undefined
5714 }
5715 entry.intervalDue = undefined
5716 }
5717 /** Worked out once per settle: a function form that throws or returns nonsense means none until the next. */
5718 const intervalMs = (entry: Entry): number | undefined => {
5719 if (entry.result === undefined) return undefined

Callers 3

removeEntryFunction · 0.85
scheduleIntervalFunction · 0.85
watchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected