1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-11 16:20:06 +00:00

chore(utils): add sleep util

This commit is contained in:
Yury Shkoda
2021-10-14 07:34:37 +00:00
parent 9cf02b25d0
commit 129cb7c128
2 changed files with 18 additions and 23 deletions

3
src/utils/sleep.ts Normal file
View File

@@ -0,0 +1,3 @@
export const sleep = async (delay: number) => {
await new Promise((resolve) => setTimeout(resolve, delay))
}