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

Method clearTimeout

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

* `clearTimeout` cancels a timeout callback scheduled with `setTimeout`, * like the global `clearTimeout` function. It should be called with a * timer ID returned by `setTimeout`. * @param timeoutId - The timer ID returned by `setTimeout`, or `undefined`. * @example * ```ts * impor

(timeoutId: ManagedTimerId | undefined)

Source from the content-addressed store, hash-verified

191 * ```
192 */
193 clearTimeout(timeoutId: ManagedTimerId | undefined): void {
194 this.#provider.clearTimeout(timeoutId)
195 }
196
197 /**
198 * `setInterval` schedules a callback to be called approximately every

Callers 3

#clearStaleTimeoutMethod · 0.80
clearGcTimeoutFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected