2022-11-08 19:45:57 +01:00

4 lines
121 B
TypeScript

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