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

Method setTimeout

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

Source from the content-addressed store, hash-verified

102 }
103
104 setTimeout(callback: TimeoutCallback, delay: number): ManagedTimerId {
105 if (process.env.NODE_ENV !== 'production') {
106 this.#providerCalled = true
107 }
108 return this.#provider.setTimeout(callback, delay)
109 }
110
111 clearTimeout(timeoutId: ManagedTimerId | undefined): void {
112 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