diff options
Diffstat (limited to 'src/utils/misc.tsx')
-rw-r--r-- | src/utils/misc.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils/misc.tsx b/src/utils/misc.tsx index f2228f8..a7d781a 100644 --- a/src/utils/misc.tsx +++ b/src/utils/misc.tsx @@ -125,3 +125,7 @@ export function humanFriendlyJoin(elements: any[], mapper: (e: any) => string = export function classes(...classes: string[]) { return classes.join(" "); } + +export function sleep(ms: number): Promise<void> { + return new Promise(r => setTimeout(r, ms)); +} |