shawenguan 2 years ago
parent
commit
54a7528e03
1 changed files with 5 additions and 7 deletions
  1. 5 7
      Scripts/jhsh/jhshHelper.js

+ 5 - 7
Scripts/jhsh/jhshHelper.js

@@ -74,14 +74,12 @@ async function doTest(){
 }
 
 async function testWait(){
-    // return new Promise(resolve => {
-    //     // setTimeout(resolve, 3000);
-    //     lk.log("waitTest");
-    //     resolve();
-    // });
+    return new Promise(resolve => {
+        // setTimeout(resolve, 3000);
+        lk.log("waitTest");
+        resolve();
+    });
     // return new Promise((resolve) => setTimeout(resolve, 3000))
-    lk.log('setTimeout');
-    return 0;
 }
 
 function checkHandleRequest() {