mirror of
https://github.com/unarray/file-tree-generator.git
synced 2026-07-22 08:40:29 +00:00
Create sleep utils
This commit is contained in:
parent
385865b103
commit
ef0fa48746
2 changed files with 4 additions and 0 deletions
1
src/utils/sleep/index.ts
Normal file
1
src/utils/sleep/index.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export * from "./sleep";
|
||||
3
src/utils/sleep/sleep.ts
Normal file
3
src/utils/sleep/sleep.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
export const sleep = (ms: number): Promise<void> => {
|
||||
return new Promise((resolve) => setTimeout(resolve, ms));
|
||||
};
|
||||
Loading…
Reference in a new issue