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

Function delay

examples/react/react-native/src/lib/api.ts:15–19  ·  view source on GitHub ↗
(t: number)

Source from the content-addressed store, hash-verified

13}
14
15function delay(t: number) {
16 return new Promise(function (resolve) {
17 setTimeout(resolve, t)
18 })
19}
20
21export async function fetchMovies(): Promise<Movie[]> {
22 console.log('fetchMovies')

Callers 3

fetchMoviesFunction · 0.70
fetchMovieFunction · 0.70
api.tsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected