MCPcopy Index your code
hub / github.com/TanStack/query / setTimeout

Method setTimeout

packages/query-core/src/timeoutManager.ts:101–106  ·  view source on GitHub ↗
(callback: TimeoutCallback, delay: number)

Source from the content-addressed store, hash-verified

99 }
100
101 setTimeout(callback: TimeoutCallback, delay: number): ManagedTimerId {
102 if (process.env.NODE_ENV !== 'production') {
103 this.#providerCalled = true
104 }
105 return this.#provider.setTimeout(callback, delay)
106 }
107
108 clearTimeout(timeoutId: ManagedTimerId | undefined): void {
109 this.#provider.clearTimeout(timeoutId)

Callers 6

throttleFunction · 0.80
#updateStaleTimeoutMethod · 0.80
sleepFunction · 0.80
scheduleGcFunction · 0.80
asyncThrottleFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected