Skip to content

Commit

Permalink
Update util.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Zain-ul-din authored Sep 26, 2023
1 parent e7f8fcb commit 304fa18
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/util.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
Stops the main thread for time
@param number of seconds
**/
export async function delay(time: number) {
await new Promise((resolve) => setTimeout(resolve, time * 1000));
}
Expand Down

0 comments on commit 304fa18

Please sign in to comment.