mirror of
https://github.com/keven1024/015.git
synced 2026-05-26 07:08:02 +00:00
feat(front): add asyncWait utility function for handling asynchronous delays
This commit is contained in:
5
front/lib/asyncWait.ts
Normal file
5
front/lib/asyncWait.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
const asyncWait = (ms: number) => {
|
||||
return new Promise((resolve) => setTimeout(resolve, ms))
|
||||
}
|
||||
|
||||
export default asyncWait
|
||||
Reference in New Issue
Block a user