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

utils.ts

5 lines141 Bytes

1export function sleep(timeout: number): Promise<void> {
2 return new Promise((resolve, _reject) => {
3 setTimeout(resolve, timeout)
4 })
5}