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:
parent
0e092a36ca
commit
20004526da
1 changed files with 3 additions and 0 deletions
3
utils/asleep.ts
Normal file
3
utils/asleep.ts
Normal file
|
@ -0,0 +1,3 @@
|
|||
export async function asleep(ms: number) {
|
||||
return await new Promise(r => setTimeout(r, ms));
|
||||
}
|
Loading…
Reference in a new issue