1
Fork 0
mirror of https://github.com/Steffo99/festa.git synced 2024-12-22 14:44:21 +00:00

Create async sleep utility function

This commit is contained in:
Steffo 2022-07-17 02:30:26 +02:00
parent 0e092a36ca
commit 20004526da
Signed by: steffo
GPG key ID: 6965406171929D01

3
utils/asleep.ts Normal file
View file

@ -0,0 +1,3 @@
export async function asleep(ms: number) {
return await new Promise(r => setTimeout(r, ms));
}