From 4673a82efe555ade29ae75cc5ac49283578e04c2 Mon Sep 17 00:00:00 2001 From: keven1024 <99848979+keven1024@users.noreply.github.com> Date: Wed, 14 May 2025 14:53:56 +0800 Subject: [PATCH] feat(front): add asyncWait utility function for handling asynchronous delays --- front/lib/asyncWait.ts | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 front/lib/asyncWait.ts diff --git a/front/lib/asyncWait.ts b/front/lib/asyncWait.ts new file mode 100644 index 0000000..b5e3323 --- /dev/null +++ b/front/lib/asyncWait.ts @@ -0,0 +1,5 @@ +const asyncWait = (ms: number) => { + return new Promise((resolve) => setTimeout(resolve, ms)) +} + +export default asyncWait