1
Fork 0
mirror of https://github.com/Steffo99/festa.git synced 2024-12-22 22:54:22 +00:00
festa/utils/asleep.ts

3 lines
No EOL
113 B
TypeScript

export async function asleep(ms: number): Promise<void> {
return await new Promise(r => setTimeout(r, ms));
}