From 0f0e336160458ddfd81f808ba2c8b8d63d2c82d0 Mon Sep 17 00:00:00 2001 From: Levi Yan Date: Tue, 30 Jul 2024 23:35:52 +0800 Subject: [PATCH] feat(utils): sleep function a small debug tool --- src/utils.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils.ts b/src/utils.ts index e69de29..5105f79 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -0,0 +1,3 @@ +export const Sleep = (ms:number)=> { + return new Promise(resolve=>setTimeout(resolve, ms)) +} \ No newline at end of file