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

Function clearGcTimeout

packages/query-core/src/removable.ts:53–58  ·  view source on GitHub ↗

* Cancels the scheduled removal, if there is one.

()

Source from the content-addressed store, hash-verified

51 * Cancels the scheduled removal, if there is one.
52 */
53 protected clearGcTimeout() {
54 if (this.#gcTimeout !== undefined) {
55 timeoutManager.clearTimeout(this.#gcTimeout)
56 this.#gcTimeout = undefined
57 }
58 }
59
60 /**
61 * Called when the garbage collection timeout fires. Subclasses remove the entry from its cache

Callers

nothing calls this directly

Calls 1

clearTimeoutMethod · 0.80

Tested by

no test coverage detected