Skip to content

Commit

Permalink
add util sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
nichtsam committed Jul 19, 2023
1 parent d8377ba commit ea4c12d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/utils/misc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export const sleep = (ms: number) =>
new Promise<void>((res) => setTimeout(() => res(), ms));

0 comments on commit ea4c12d

Please sign in to comment.