Skip to content

Commit

Permalink
Add sleep function
Browse files Browse the repository at this point in the history
  • Loading branch information
fer-roh committed Jan 6, 2025
1 parent d8c9590 commit fc866f0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/panorama/hud.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,7 @@ function toArray<T>(obj: Record<number, T>): T[] {

return result;
}

async function sleep(time: number): Promise<void> {
return new Promise<void>((resolve) => $.Schedule(time, resolve));
}

0 comments on commit fc866f0

Please sign in to comment.