diff --git a/packages/app/src/lib/utils/index.ts b/packages/app/src/lib/utils/index.ts index 3d48efcc..05f35d92 100644 --- a/packages/app/src/lib/utils/index.ts +++ b/packages/app/src/lib/utils/index.ts @@ -185,3 +185,7 @@ export function stringToSlug(string: string): string { .replace(/[^\w -]+/g, "") .replace(/ +/g, "-") } + +export function sleep(ms: number) { + return new Promise((resolve) => setTimeout(resolve, ms)) +}