aboutsummaryrefslogtreecommitdiff
path: root/src/util.ts
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2021-02-28 16:55:40 -0600
committermat <27899617+mat-1@users.noreply.github.com>2021-02-28 16:55:40 -0600
commitf5a8a08022e5748cf8c582bf2486520e27d73f06 (patch)
tree075c7d338eb98c51b0c5a4c645f26a083f23e5f4 /src/util.ts
parentd9d557a095d09f0d4e643ee6b59a28520a003b20 (diff)
downloadskyblock-api-f5a8a08022e5748cf8c582bf2486520e27d73f06.tar.gz
skyblock-api-f5a8a08022e5748cf8c582bf2486520e27d73f06.tar.bz2
skyblock-api-f5a8a08022e5748cf8c582bf2486520e27d73f06.zip
Make leaderboard stuff use less memory
Diffstat (limited to 'src/util.ts')
-rw-r--r--src/util.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util.ts b/src/util.ts
index 2ff55a8..e0c7699 100644
--- a/src/util.ts
+++ b/src/util.ts
@@ -79,4 +79,8 @@ export function colorCodeFromName(colorName: string): string {
if (key.length === 1 && value === hexColor)
return key
}
+}
+
+export async function sleep(ms: number) {
+ await new Promise(resolve => setTimeout(resolve, ms))
} \ No newline at end of file