From d9b97c2fd6df1b8138dee827d1843abaf41f0434 Mon Sep 17 00:00:00 2001 From: ZLY Date: Tue, 28 Oct 2025 15:41:06 +0800 Subject: [PATCH] =?UTF-8?q?feat(utils):=20=E6=B7=BB=E5=8A=A0=20sleep=20?= =?UTF-8?q?=E5=B7=A5=E5=85=B7=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/common.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/utils/common.ts b/src/utils/common.ts index 9f279f1..1a804e6 100644 --- a/src/utils/common.ts +++ b/src/utils/common.ts @@ -229,4 +229,8 @@ export const deserializeValue = (value: any): any => { console.warn('Failed to deserialize value:', value, error); return value; } -}; \ No newline at end of file +}; + +export const sleep = (ms: number): Promise => { + return new Promise(resolve => setTimeout(resolve, ms)); +};