Skip to content

Commit

Permalink
feat: sleep utils
Browse files Browse the repository at this point in the history
  • Loading branch information
rharkor committed Feb 17, 2024
1 parent dbfffeb commit 420edf4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/app/src/lib/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}

0 comments on commit 420edf4

Please sign in to comment.