Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

sleep.ts

4 lines114 Bytes

1export const sleep = (ms: number): Promise<void> =>
2 new Promise((resolve) => {
3 setTimeout(resolve, ms)
4 })