MCPcopy Create free account
hub / github.com/TanStack/query / setInterval

Method setInterval

packages/query-core/src/timeoutManager.ts:216–221  ·  view source on GitHub ↗

* `setInterval` schedules a callback to be called approximately every * `delay` milliseconds, like the global `setInterval` function. * * Like `setTimeout`, it returns a timer ID, which may be a number or an * object that can be coerced to a number via `Symbol.toPrimitive`. * @param c

(callback: TimeoutCallback, delay: number)

Source from the content-addressed store, hash-verified

214 * ```
215 */
216 setInterval(callback: TimeoutCallback, delay: number): ManagedTimerId {
217 if (process.env.NODE_ENV !== 'production') {
218 this.#providerCalled = true
219 }
220 return this.#provider.setInterval(callback, delay)
221 }
222
223 /**
224 * `clearInterval` can be used to cancel an interval, like the global

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected